Skip to content
Permalink
Browse files

SystemField changed to use method "_text" instead of "text" to allow …

…override
  • Loading branch information...
marinho committed Mar 29, 2011
1 parent 66f7918 commit f5826db2dae5d41592628750c7bd4be9bc0163d5
@@ -1,3 +1,8 @@
2011-03-29: Version 0.4.12-stable
--------------------------------

* SystemField changed to use method "_text" instead of "text" to allow override

2011-02-16: Version 0.4.11-alpha
--------------------------------

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -43,7 +43,7 @@
- tests - a package with automated doc tests.
"""

VERSION = (0, 4, 11, 'alpha')
VERSION = (0, 4, 12, 'stable')

def get_version():
return '%d.%d.%d-%s'%VERSION
@@ -329,7 +329,7 @@ def __init__(self, **kwargs):

self.fields['current_datetime'] = datetime.datetime.now()

def text(self):
def _text(self):
page_number = (self.fields.get('page_number') or self.generator._current_page_number) + self.generator.first_page_number - 1
page_count = self.fields.get('page_count') or self.generator.get_page_count()

@@ -347,6 +347,8 @@ def text(self):
return self.get_value(self.expression, fields)

return self.expression%SystemFieldDict(self, fields)

def text(self): return self._text()
text = property(text)

def clone(self):

0 comments on commit f5826db

Please sign in to comment.
You can’t perform that action at this time.