diff --git a/gen/__init__.py b/gen/__init__.py index e9ecbba..bba5f87 100755 --- a/gen/__init__.py +++ b/gen/__init__.py @@ -243,6 +243,7 @@ class String(Type): LINE = 0 TEXT = 1 XHTML = 2 + PASSWORD = 3 def __init__(self, validator=None, multiplicity=(0,1), index=None, default=None, optional=False, editDefault=False, format=LINE, show=True, page='main', group=None, move=0, indexed=False, diff --git a/gen/plone25/descriptors.py b/gen/plone25/descriptors.py index a8c3f8c..2d2c7fe 100644 --- a/gen/plone25/descriptors.py +++ b/gen/plone25/descriptors.py @@ -130,9 +130,11 @@ class ArchetypeFieldDescriptor: self.widgetType = 'RichWidget' self.fieldParams['allowable_content_types'] = ('text/html',) self.fieldParams['default_output_type'] = "text/html" - else: + elif self.appyType.format == String.PASSWORD: self.fieldType = 'StringField' - self.widgetType = 'StringWidget' + self.widgetType = 'PasswordWidget' + if self.appyType.width: + self.widgetParams['size'] = self.appyType.width def walkComputed(self): '''How to generate a computed field? We generate an Archetypes String diff --git a/gen/plone25/skin/edit.gif b/gen/plone25/skin/edit.gif new file mode 100644 index 0000000..2c8d2ca Binary files /dev/null and b/gen/plone25/skin/edit.gif differ diff --git a/gen/plone25/skin/macros.pt b/gen/plone25/skin/macros.pt index 40ad487..7a10b03 100644 --- a/gen/plone25/skin/macros.pt +++ b/gen/plone25/skin/macros.pt @@ -128,7 +128,7 @@ fmt python: appyType['format']; maxMult python: appyType['multiplicity'][1]; severalValues python: (maxMult == None) or (maxMult > 1)"> - + @@ -150,12 +150,15 @@ - + + + ******** + - +
When no tabs are shown, we provide an edit icon. @@ -539,9 +542,9 @@ tal:attributes="href python: contextObj.absolute_url() + '/skyn/view?phase=%s&pageName=%s' % (phase, thePage)"> @@ -718,7 +721,8 @@ Edit the element - + Delete the element diff --git a/gen/plone25/skin/ref.pt b/gen/plone25/skin/ref.pt index 1ed1c97..e6bf1b7 100644 --- a/gen/plone25/skin/ref.pt +++ b/gen/plone25/skin/ref.pt @@ -39,7 +39,8 @@ Edit the element - + Delete the element diff --git a/pod/converter.py b/pod/converter.py index 263a116..cfcbc02 100755 --- a/pod/converter.py +++ b/pod/converter.py @@ -91,7 +91,8 @@ class Converter: raise ConverterError(CANNOT_WRITE_RESULT % (res, oe)) def connect(self): '''Connects to OpenOffice''' - import socket + if os.name == 'nt': + import socket import uno from com.sun.star.connection import NoConnectException try: