equal
deleted
inserted
replaced
236 self.req, rset, context='navcontentbottom') |
236 self.req, rset, context='navcontentbottom') |
237 |
237 |
238 This will yield additional WARNINGs, like this: :: |
238 This will yield additional WARNINGs, like this: :: |
239 |
239 |
240 2009-01-09 16:43:52 - (cubicweb.selectors) WARNING: selector one_line_rset returned 0 for <class 'cubicweb.web.views.basecomponents.WFHistoryVComponent'> |
240 2009-01-09 16:43:52 - (cubicweb.selectors) WARNING: selector one_line_rset returned 0 for <class 'cubicweb.web.views.basecomponents.WFHistoryVComponent'> |
|
241 |
|
242 * How to format an entity date attribute? |
|
243 |
|
244 If your schema has an attribute of type Date or Datetime, you might |
|
245 want to format it. First, you should define your preferred format using |
|
246 the site configuration panel ``http://appurl/view?vid=systemepropertiesform`` |
|
247 and then set ``ui.date`` and/or ``ui.datetime``. |
|
248 Then in the view code, use:: |
|
249 |
|
250 self.format_date(entity.date_attribute) |