Skip to content

Commit

Permalink
* Some clean up.
Browse files Browse the repository at this point in the history
* For some reason the message factory was not available as _ and 
failed hard.
  • Loading branch information
strichter committed Jun 14, 2009
1 parent 9b433a9 commit a4e5269
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/z3c/form/interfaces.py
Expand Up @@ -16,14 +16,14 @@
$Id$
"""
__docformat__ = "reStructuredText"

import zope.i18nmessageid
import zope.interface
import zope.schema
from zope.interface.common import mapping
from zope.location.interfaces import ILocation
from zope.publisher.interfaces.browser import IBrowserRequest

from z3c.form.i18n import MessageFactory as _
MessageFactory = _ = zope.i18nmessageid.MessageFactory('z3c.form')

INPUT_MODE = 'input'
DISPLAY_MODE = 'display'
Expand All @@ -32,14 +32,14 @@
class NOT_CHANGED(object):
def __repr__(self):
return '<NOT_CHANGED>'
NOT_CHANGED = NOT_CHANGED()
NOT_CHANGED = NOT_CHANGED()

class NO_VALUE(object):
def __repr__(self):
return '<NO_VALUE>'
NO_VALUE = NO_VALUE()

NOVALUE = NO_VALUE # BBB: the object was renamed to follow common naming style
# BBB: the object was renamed to follow common naming style
NOVALUE = NO_VALUE

# ----[ Layer Declaration ]--------------------------------------------------

Expand Down

0 comments on commit a4e5269

Please sign in to comment.