[zopeorg-checkins] CVS: Products/ZopeOrg-NV - ZopeServiceProvider.py:1.3

Sidnei da Silva sidnei at x3ng.com.br
Mon Jan 20 14:53:05 EST 2003


Update of /cvs-zopeorg/Products/ZopeOrg-NV
In directory cvs.zope.org:/tmp/cvs-serv6968

Modified Files:
	ZopeServiceProvider.py 
Log Message:
ZSP management views

=== Products/ZopeOrg-NV/ZopeServiceProvider.py 1.2 => 1.3 ===
                              , 'actions'        :
                                 ( { 'id'            : 'view' 
                                   , 'name'          : 'View'
-                                  , 'action'        : 'document_view'
+                                  , 'action'        : 'zsp_view'
                                   , 'permissions'   : (View,)
                                   }
                                 , { 'id'            : 'edit'
@@ -47,6 +47,10 @@
     _company_url = ''
     _contact_name = ''
     _contact_email = ''
+    _external_url = ''
+    _fax = ''
+    _voice = ''
+    _stx_level = 2
 
     def __init__(self, id, title='', description='', text_format='', text=''):
         DefaultDublinCoreImpl.__init__(self)
@@ -67,9 +71,20 @@
     security.declareProtected(View, 'ServiceInfo')
     ServiceInfo = Document.CookedBody
     
+    security.declareProtected(View, 'editableServiceInfo')
+    editableServiceInfo = Document.EditableBody
+
     security.declareProtected(ModifyPortalContent, 'setServiceInfo')
     setServiceInfo = Document.edit
 
+    security.declareProtected(View, 'ExternalURL')
+    def ExternalURL(self):
+        return self._external_url
+
+    security.declareProtected(ModifyPortalContent, 'setExternalURL')
+    def setExternalURL(self, external_url):
+        self._external_url = external_url
+
     security.declareProtected(View, 'Location')
     def Location(self):
         return self._location
@@ -85,6 +100,10 @@
             return getattr(self, logo, None)
         return None
 
+    security.declareProtected(View, 'Logo')
+    def Logo(self):
+        return self._logo
+
     security.declareProtected(ModifyPortalContent, 'setLogo')
     def setLogo(self, logo):
         self._logo = logo
@@ -104,6 +123,22 @@
     security.declareProtected(ModifyPortalContent, 'setContactEmail')
     def setContactEmail(self, contact_email):
         self._contact_email = contact_email
+
+    security.declareProtected(View, 'Voice')
+    def Voice(self):
+        return self._voice
+
+    security.declareProtected(ModifyPortalContent, 'setVoice')
+    def setVoice(self, voice):
+        self._voice = voice
+
+    security.declareProtected(View, 'Fax')
+    def Fax(self):
+        return self._fax
+
+    security.declareProtected(ModifyPortalContent, 'setFax')
+    def setFax(self, fax):
+        self._fax = fax
 
 InitializeClass(ZopeServiceProvider)
 





More information about the zopeorg-checkins mailing list