Changeset 752
- Timestamp:
- 26.10.2009 17:53:28 (2 years ago)
- Location:
- ZMS/trunk
- Files:
-
- 1 deleted
- 40 edited
-
ZMSFormatProvider.py (modified) (1 diff)
-
ZMSGlobals.py (modified) (1 diff)
-
ZMSItem.py (modified) (3 diffs)
-
ZMSMetamodelProvider.py (modified) (1 diff)
-
__init__.py (modified) (2 diffs)
-
_accessmanager.py (modified) (1 diff)
-
_cachemanager.py (modified) (2 diffs)
-
_confmanager.py (modified) (3 diffs)
-
_copysupport.py (modified) (1 diff)
-
_deprecatedapi.py (modified) (1 diff)
-
_filtermanager.py (modified) (1 diff)
-
_ftpmanager.py (modified) (1 diff)
-
_globals.py (modified) (4 diffs)
-
_importable.py (modified) (1 diff)
-
_mediadb.py (modified) (1 diff)
-
_metacmdmanager.py (modified) (1 diff)
-
_multilangmanager.py (modified) (1 diff)
-
_objinputs.py (modified) (1 diff)
-
_objtypes.py (modified) (1 diff)
-
_sequence.py (modified) (1 diff)
-
_versionmanager.py (modified) (1 diff)
-
_webdav.py (deleted)
-
_workflowmanager.py (modified) (1 diff)
-
_zmsattributecontainer.py (modified) (2 diffs)
-
_zreferableitem.py (modified) (1 diff)
-
changes.txt (modified) (1 diff)
-
dtml/ZMSContainerObject/manage_importexportdebugfilter.dtml (modified) (5 diffs)
-
dtml/ZMSContainerObject/manage_main_change.dtml (modified) (1 diff)
-
dtml/ZMSContainerObject/manage_system.dtml (modified) (1 diff)
-
dtml/object/f_breadcrumbs.dtml (modified) (1 diff)
-
import/default_win32.filter.xml (modified) (3 diffs)
-
version.txt (modified) (1 diff)
-
zms.py (modified) (2 diffs)
-
zmscontainerobject.py (modified) (4 diffs)
-
zmscustom.py (modified) (1 diff)
-
zmslinkcontainer.py (modified) (2 diffs)
-
zmslinkelement.py (modified) (2 diffs)
-
zmslog.py (modified) (1 diff)
-
zmsobject.py (modified) (6 diffs)
-
zmssqldb.py (modified) (2 diffs)
-
zmstrashcan.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/ZMSFormatProvider.py
r121 r752 26 26 from __future__ import nested_scopes 27 27 from zope.interface import implements 28 from Globalsimport HTMLFile28 from App.special_dtml import HTMLFile 29 29 import copy 30 30 # Product Imports. -
ZMS/trunk/ZMSGlobals.py
r750 r752 26 26 from AccessControl import AuthEncoding 27 27 from App.Common import package_home 28 from Globalsimport HTMLFile28 from App.special_dtml import HTMLFile 29 29 from DateTime.DateTime import DateTime 30 30 from cStringIO import StringIO -
ZMS/trunk/ZMSItem.py
r121 r752 25 25 from __future__ import nested_scopes 26 26 from DateTime.DateTime import DateTime 27 from Globals import HTMLFile, Persistent 27 from App.special_dtml import HTMLFile 28 from Persistence import Persistent 28 29 from Acquisition import Implicit 29 from OFS.PropertySheets import PropertySheets, vps 30 from webdav.Lockable import ResourceLockedError 31 import OFS.SimpleItem, OFS.ObjectManager, webdav.Collection 30 import OFS.SimpleItem, OFS.ObjectManager 32 31 import string 33 import _webdav34 32 35 33 … … 43 41 class ZMSItem( 44 42 OFS.ObjectManager.ObjectManager, 45 webdav.Collection.Collection,46 43 OFS.SimpleItem.Item, 47 44 Persistent, # Persistent. … … 127 124 return RESPONSE.redirect('manage?lang=%s'%lang) 128 125 129 130 ############################################################################131 ###132 ### WebDAV133 ###134 ############################################################################135 136 # Standard DAVProperties + ZMSProperties.137 # ---------------------------------------138 propertysheets=vps(_webdav.ZMSPropertySheets)139 140 141 # --------------------------------------------------------------------------142 # ZMSItem._checkWebDAVLock143 # --------------------------------------------------------------------------144 def _checkWebDAVLock(self):145 if self.wl_isLocked():146 raise ResourceLockedError, 'This %s Object is locked via WebDAV' % self.meta_type147 148 149 # --------------------------------------------------------------------------150 # ZMSItem.document_src151 # --------------------------------------------------------------------------152 def document_src(self, REQUEST={}):153 """ document_src returns ZMSAttributes as XML """154 return self.toXml(REQUEST, incl_embedded=False, deep=False, data2hex=True)155 156 157 manage_FTPget = manage_DAVget = document_src158 159 # --------------------------------------------------------------------------160 # ZMSItem.PUT161 # --------------------------------------------------------------------------162 def PUT(self, REQUEST, RESPONSE):163 """Handle HTTP PUT requests"""164 self.dav__init(REQUEST, RESPONSE)165 self.dav__simpleifhandler(REQUEST, RESPONSE, refresh=1)166 167 file=REQUEST['BODYFILE']168 169 builder = _webdav.XmlWebDAVBuilder()170 171 v = builder.parse(file)172 173 lang = REQUEST.get('lang', None)174 175 if lang is None:176 lang = self.getPrimaryLanguage()177 REQUEST.set('lang', lang)178 179 if _globals.debug( self):180 for key in v.keys():181 _globals.writeLog( self, '%s: %s' %(key, v.get(key, lang)))182 183 attrs = self.getObjAttrs()184 185 if _globals.debug( self):186 _globals.writeLog( 'Updating %s via WebDAV' % self.absolute_url())187 188 self.setObjStateModified(REQUEST)189 190 for attr in attrs.keys():191 if attr in v.keys():192 # get new value193 value_new = v.get(attr, lang)194 195 # if value is used as datetime, convert to correct form196 datatype = attrs[attr].get('datatype', 'string')197 if datatype == 'datetime':198 if value_new[0] == '(':199 value_new = value_new[1:-1].split(',')200 value_new = map(int, value_new)201 value_new = _globals.getDateTime(tuple(value_new))202 203 # if value is used as boolea, convert to correct form204 if datatype == 'boolean':205 value_new = bool(value_new)206 207 # get old value208 value_old = self.getObjProperty(attr, REQUEST)209 210 # if value has changed211 if value_new != value_old:212 if _globals.debug( self):213 _globals.writeLog( 'Updating property %s: %s' % (attr, value_new))214 self.setObjProperty(attr, value_new, forced=1)215 216 self.onChangeObj(REQUEST)217 218 RESPONSE.setStatus(204)219 return RESPONSE220 221 222 # --------------------------------------------------------------------------223 # ZMSItem.listDAVObjects224 # --------------------------------------------------------------------------225 def listDAVObjects(self):226 objectValues = getattr(self, 'objectValues', None)227 if objectValues is not None:228 spec = [ 'BTreeFolder2',229 'DTML Document',230 'DTML Method',231 'File',232 'Folder',233 'Folder (Ordered)',234 'Image',235 'Script (Python)']236 spec.extend( self.dGlobalAttrs.keys())237 return objectValues(spec = spec)238 return []239 240 126 ################################################################################ -
ZMS/trunk/ZMSMetamodelProvider.py
r724 r752 26 26 from __future__ import nested_scopes 27 27 from zope.interface import implements 28 from Globalsimport HTMLFile28 from App.special_dtml import HTMLFile 29 29 import copy 30 30 # Product Imports. -
ZMS/trunk/__init__.py
r723 r752 31 31 32 32 # Imports. 33 from Globals import ImageFile34 33 from App.Common import package_home 34 from App.ImageFile import ImageFile 35 35 import OFS.misc_ 36 36 import os … … 157 157 ) 158 158 159 context.registerBaseClass(zms.ZMS)160 159 161 160 # automated registration for util -
ZMS/trunk/_accessmanager.py
r553 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globalsimport HTMLFile26 from App.special_dtml import HTMLFile 27 27 from AccessControl.User import UserFolder 28 28 from types import StringTypes -
ZMS/trunk/_cachemanager.py
r613 r752 304 304 """ CacheableObject.manage_getCachedPages """ 305 305 306 self._checkWebDAVLock()307 306 message = '' 308 307 t0 = time.time() … … 332 331 """ CacheableObject.manage_clearCachePages """ 333 332 334 self._checkWebDAVLock()335 333 message = '' 336 334 t0 = time.time() -
ZMS/trunk/_confmanager.py
r723 r752 27 27 from cStringIO import StringIO 28 28 from App.Common import package_home 29 from App.special_dtml import HTMLFile 29 30 from DateTime.DateTime import DateTime 30 from Globals import HTMLFile31 31 from OFS.CopySupport import absattr 32 32 from OFS.Image import Image … … 206 206 """ 207 207 filenames = {} 208 filepath = package_home(globals())+'/import/' 209 conf = open( filepath+'configure.zcml','r') 208 filepaths = [ 209 self.Control_Panel.getINSTANCE_HOME()+'/etc/zms/import/', 210 package_home(globals())+'/import/',] 211 try: 212 conf = open( filepaths[0]+'configure.zcml','r') 213 except: 214 conf = open( filepaths[1]+'configure.zcml','r') 210 215 conf_xml = self.xmlParse( conf) 216 print "conf_xml=",conf_xml 211 217 for source in self.xmlNodeSet(conf_xml,'source'): 212 218 location = source['attrs']['location'] 219 print "location=",location 213 220 if location.startswith('http://'): 214 221 try: … … 222 229 _globals.writeError( self, "[getConfFiles]: can't get conf-files from remote URL=%s"%location) 223 230 else: 224 for filename in os.listdir(filepath+location): 225 path = filepath + filename 226 mode = os.stat(path)[stat.ST_MODE] 227 if not stat.S_ISDIR(mode): 228 if filename not in filenames: 229 filenames[path] = filename 231 for filepath in filepaths: 232 for filename in os.listdir(filepath+location): 233 path = filepath + filename 234 mode = os.stat(path)[stat.ST_MODE] 235 if not stat.S_ISDIR(mode): 236 if filename not in filenames: 237 filenames[path] = filename 230 238 conf.close() 231 239 # Filter. -
ZMS/trunk/_copysupport.py
r750 r752 267 267 t0 = time.time() 268 268 269 # Check if object is locked via WebDAV270 self._checkWebDAVLock()271 272 269 # Analyze request 273 270 cp=self._get_cb_copy_data(cb_copy_data=None,REQUEST=REQUEST) -
ZMS/trunk/_deprecatedapi.py
r464 r752 23 23 24 24 # Imports. 25 from Globalsimport HTMLFile25 from App.special_dtml import HTMLFile 26 26 # Product Imports. 27 27 import _globals -
ZMS/trunk/_filtermanager.py
r666 r752 25 25 from __future__ import nested_scopes 26 26 from App.Common import package_home 27 from Globalsimport HTMLFile27 from App.special_dtml import HTMLFile 28 28 import ZPublisher.HTTPRequest 29 29 import copy -
ZMS/trunk/_ftpmanager.py
r337 r752 23 23 24 24 # Imports. 25 from Globalsimport HTMLFile25 from App.special_dtml import HTMLFile 26 26 import urllib 27 27 import ftplib -
ZMS/trunk/_globals.py
r627 r752 540 540 ################################################################################ 541 541 # 542 # Traces542 # Logging 543 543 # 544 544 ################################################################################ 545 545 """ 546 547 LOG = logging.getLogger("ZMS") 546 548 547 549 # ------------------------------------------------------------------------------ … … 565 567 def writeLog(self, info): 566 568 try: 569 LOG.debug(info) 567 570 zms_log = getattr( self, 'zms_log', None) 568 571 if 'DEBUG' in zms_log.logged_entries: … … 578 581 def writeBlock(self, info): 579 582 try: 583 LOG.info(info) 580 584 zms_log = getattr( self, 'zms_log', None) 581 585 if 'INFO' in zms_log.logged_entries: … … 592 596 info = '?' 593 597 try: 598 LOG.error(info) 594 599 t,v,tb = sys.exc_info() 595 600 v = str(v) -
ZMS/trunk/_importable.py
r337 r752 24 24 # Imports. 25 25 from App.Common import package_home 26 from Globalsimport HTMLFile26 from App.special_dtml import HTMLFile 27 27 import ZPublisher.HTTPRequest 28 28 import os -
ZMS/trunk/_mediadb.py
r377 r752 23 23 24 24 # Imports. 25 from Globals import HTMLFile, Persistent 25 from App.special_dtml import HTMLFile 26 from Persistence import Persistent 26 27 from ZPublisher.Iterators import filestream_iterator 27 28 import OFS.SimpleItem -
ZMS/trunk/_metacmdmanager.py
r252 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globalsimport HTMLFile26 from App.special_dtml import HTMLFile 27 27 from Products.PythonScripts import PythonScript 28 28 import copy -
ZMS/trunk/_multilangmanager.py
r345 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globalsimport HTMLFile26 from App.special_dtml import HTMLFile 27 27 import copy 28 28 import urllib -
ZMS/trunk/_objinputs.py
r750 r752 23 23 24 24 # Imports. 25 from Globalsimport HTMLFile25 from App.special_dtml import HTMLFile 26 26 # Product Imports. 27 27 import _globals -
ZMS/trunk/_objtypes.py
r267 r752 23 23 24 24 # Imports. 25 from Globalsimport HTMLFile25 from App.special_dtml import HTMLFile 26 26 # Product Imports. 27 27 import _fileutil -
ZMS/trunk/_sequence.py
r121 r752 23 23 24 24 # Imports. 25 from Globalsimport HTMLFile25 from App.special_dtml import HTMLFile 26 26 import urllib 27 27 # Product Imports. -
ZMS/trunk/_versionmanager.py
r676 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globalsimport HTMLFile26 from App.special_dtml import HTMLFile 27 27 import copy 28 28 import operator -
ZMS/trunk/_workflowmanager.py
r750 r752 25 25 from __future__ import nested_scopes 26 26 from App.Common import package_home 27 from Globalsimport HTMLFile27 from App.special_dtml import HTMLFile 28 28 import ZPublisher.HTTPRequest 29 29 import copy -
ZMS/trunk/_zmsattributecontainer.py
r698 r752 28 28 29 29 # Imports. 30 from Globalsimport HTMLFile30 from App.special_dtml import HTMLFile 31 31 from OFS.Folder import Folder 32 from webdav.Resource import Resource33 from webdav.Lockable import ResourceLockedError34 from webdav.WriteLockInterface import WriteLockInterface35 32 import urllib 36 33 import time … … 156 153 return RESPONSE.redirect('manage_propertiesForm?manage_tabs_message=%s'%(urllib.quote(message))) 157 154 158 159 """160 ##############################################################################161 #162 # WebDAV163 #164 ##############################################################################165 """166 167 # WebDAV Interface.168 # -----------------169 __implements__ = (WriteLockInterface,)170 171 # ----------------------------------------------------------------------------172 # ZMSObject._checkWebDAVLock173 # ----------------------------------------------------------------------------174 def _checkWebDAVLock(self):175 if self.wl_isLocked():176 raise ResourceLockedError, 'This %s Object is locked via WebDAV' % self.meta_type177 178 # ----------------------------------------------------------------------------179 # ZMSObject.document_src180 # ----------------------------------------------------------------------------181 def document_src(self, REQUEST={}):182 """ document_src returns ZMSAttributes as XML """183 return self.toXml(REQUEST, incl_embedded=False, deep=False)184 185 manage_DAVget = manage_FTPget = document_src186 187 155 ################################################################################ -
ZMS/trunk/_zreferableitem.py
r750 r752 23 23 24 24 # Imports. 25 from Globals import HTML,HTMLFile25 from App.special_dtml import HTMLFile 26 26 import copy 27 27 import operator -
ZMS/trunk/changes.txt
r750 r752 1371 1371 [01271] Increased col-size threshold for string -> text in SQL-Datasource from 50 to 128 (requested by fh). 1372 1372 -------------------------------------------------- 1373 2009-10-19:zms-2.11.4-02 1374 [01271] Revised imports from Globals with respect for deprecation warnings in Zope2-2.12.0. 1375 [01272] Removed webdav-support for compatibility with Zope2-2.12.0. 1376 [01273] Added support to SQL-Datasource for auto re-connect and setting character-set to utf-8 on MySql (contributed by C. Meier). 1377 [01274] Added support for logging to event.log (requested by xm). 1378 [01275] Added support for overwriting configuration of $ZMS_HOME/import/configure.zcml by $INSTANCE_HOME/etc/zms/import/configure.zcml(requested by xm). 1379 -------------------------------------------------- -
ZMS/trunk/dtml/ZMSContainerObject/manage_importexportdebugfilter.dtml
r750 r752 39 39 <input type="hidden" name="outfilename" value="<dtml-var outfilename>"/> 40 40 41 <input class="form-submit" type="submit" name="btn" value="<dtml-var "getZMILangStr('BTN_NEXT')">"/> 42 <input class="form-submit" type="submit" name="btn" value="<dtml-var "getZMILangStr('BTN_CANCEL')">"/> 41 <input class="form-submit" type="submit" name="btn" value=" » "/> 43 42 <hr size="1"/> 44 43 … … 74 73 ></td><td class="form-small" style="color:blue"><b> {IN}</b></td></tr> 75 74 <dtml-elif "filter['format']=='export'"> 76 <tr><td align="center" class="form-small" style=" <dtml-if "step==0">border: 2px solid red; </dtml-if>white-space: nowrap; color:white; background-color:black; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;"75 <tr><td align="center" class="form-small" style="white-space: nowrap; color:white; background-color:black; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;" 77 76 ><dtml-var "filter['format'].capitalize()"> <font style="font-weight: bold; color:#D9E100; background-color:#000000;"> ZMS </font></td></tr> 78 77 <dtml-elif "filter['format']=='XHTML'"> 79 <tr><td align="center" class="form-small" style=" <dtml-if "step==0">border: 2px solid red; </dtml-if>white-space: nowrap; color:white; background-color:black; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;"78 <tr><td align="center" class="form-small" style="white-space: nowrap; color:white; background-color:black; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;" 80 79 ><img src="<dtml-var MISC_ZMS>mime_type.text_html.gif" title="<dtml-var "filter['format']">" border="0" align="absmiddle" /><dtml-var "filter['format']"> <font style="font-weight: bold; color:#D9E100; background-color:#000000;"> ZMS </font></td></tr> 81 80 <dtml-elif "filter['format'] in ['XML','XML_incl_embedded']"> 82 <tr><td align="center" class="form-small" style=" <dtml-if "step==0">border: 2px solid red; </dtml-if>white-space: nowrap; color:white; background-color:black; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;"81 <tr><td align="center" class="form-small" style="white-space: nowrap; color:white; background-color:black; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;" 83 82 ><img src="<dtml-var MISC_ZMS>mime_type.text_xml.gif" title="<dtml-var "filter['format']">" border="0" align="absmiddle" /><dtml-var "filter['format']"> <font style="font-weight: bold; color:#D9E100; background-color:#000000;"> ZMS </font></td></tr> 84 83 </dtml-if> … … 90 89 <dtml-if "filterProcess.get('file',None)"> 91 90 <dtml-let f="filterProcess['file']"> 92 <td align="center" class="form-small" style="<dtml-if "step==pid +1">border: 2px solid red;<dtml-else>border: 1px solid navy;</dtml-if> white-space: nowrap; background-color: white; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;">91 <td align="center" class="form-small" style="<dtml-if "step==pid">border: 2px solid red;<dtml-else>border: 1px solid navy;</dtml-if> white-space: nowrap; background-color: white; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;"> 93 92 <dtml-if "len(process.keys())==1"><img src="<dtml-var MISC_ZMS>ico_error.gif" title="ERROR: Processing-step type '<dtml-var "process['id']">' not found!" border="0" align="absmiddle"/> <span style="border: 2px solid red;"></dtml-if> 94 93 <img src="<dtml-var "f.getMimeTypeIconSrc()">" title="<dtml-var "f.getContentType()">, <dtml-var "f.getDataSizeStr()">" border="0" align="absmiddle"/> … … 101 100 <dtml-else> 102 101 <tr> 103 <td align="center" class="form-small" style="<dtml-if "step==pid +1">border: 2px solid red;<dtml-else>border: 1px solid maroon;</dtml-if> white-space: nowrap; background-color: #FFFFE0; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;"><dtml-var "process['name']" html_quote></td>102 <td align="center" class="form-small" style="<dtml-if "step==pid">border: 2px solid red;<dtml-else>border: 1px solid maroon;</dtml-if> white-space: nowrap; background-color: #FFFFE0; padding:2px; margin-left:4px; margin-right:4px; margin-top:0px; margin-bottom:0px;"><dtml-var "process['name']" html_quote></td> 104 103 <dtml-if "filterProcess.get('file',None)"> 105 104 <dtml-let f="filterProcess['file']"> … … 140 139 141 140 <hr size="1"/> 142 <input class="form-submit" type="submit" name="btn" value="<dtml-var "getZMILangStr('BTN_NEXT')">"/> 143 <input class="form-submit" type="submit" name="btn" value="<dtml-var "getZMILangStr('BTN_CANCEL')">"/> 144 141 <input class="form-submit" type="submit" name="btn" value=" » "/> 145 142 </form> 146 143 -
ZMS/trunk/dtml/ZMSContainerObject/manage_main_change.dtml
r750 r752 4 4 <img src="<dtml-var MISC_ZMS>state_locked.gif" border="0" title="<dtml-var "getZMILangStr('STATE_LOCKED')"> <dtml-var "getZMILangStr('BY')"> <dtml-var "_.getattr(ob,'co_uid_%s'%lang)"> (<dtml-var "getLangFmtDate(_.getattr(ob,'co_dat_%s'%lang),manage_lang)">)" align="middle"/> 5 5 </dtml-if> 6 </dtml-unless>7 8 <dtml-comment>##### WebDav-Lock ###############################</dtml-comment>9 <dtml-unless "REQUEST.form.has_key('ZMS_VERSION_%s'%id)">10 <dtml-try>11 <dtml-if "wl_isLocked()==1">12 <img src="/p_/davlocked">13 </dtml-if>14 <dtml-except>15 </dtml-try>16 6 </dtml-unless> 17 7 -
ZMS/trunk/dtml/ZMSContainerObject/manage_system.dtml
r723 r752 126 126 &dtml-sequence-key; <dtml-if title>(&dtml-title;)</dtml-if> 127 127 </a> 128 <dtml-comment>129 <!-- ### WebDav-Lock -->130 </dtml-comment>131 <dtml-try>132 <dtml-if "wl_isLocked()==1">133 <img src="/p_/davlocked">134 </dtml-if>135 <dtml-except>136 </dtml-try>137 128 <dtml-if locked_in_version> 138 129 <dtml-if modified_in_version> -
ZMS/trunk/dtml/object/f_breadcrumbs.dtml
r750 r752 43 43 </dtml-in> 44 44 </dtml-if> 45 <dtml-comment>46 <!-- ### WebDav-Lock -->47 </dtml-comment>48 <dtml-try>49 <dtml-if "wl_isLocked()==1">50 <img src="/p_/davlocked">51 </dtml-if>52 <dtml-except>53 </dtml-try>54 45 </span> -
ZMS/trunk/import/default_win32.filter.xml
r698 r752 2404 2404 <xsl:attribute-set name="th"> 2405 2405 <xsl:attribute name="font-size">9pt</xsl:attribute> 2406 <xsl:attribute name="font-weight">bold er</xsl:attribute>2406 <xsl:attribute name="font-weight">bold</xsl:attribute> 2407 2407 <xsl:attribute name="text-align">center</xsl:attribute> 2408 2408 <xsl:attribute name="background-color">silver</xsl:attribute> … … 2431 2431 2432 2432 <xsl:attribute-set name="b"> 2433 <xsl:attribute name="font-weight">bold er</xsl:attribute>2433 <xsl:attribute name="font-weight">bold</xsl:attribute> 2434 2434 </xsl:attribute-set> 2435 2435 <xsl:attribute-set name="strong"> 2436 <xsl:attribute name="font-weight">bold er</xsl:attribute>2436 <xsl:attribute name="font-weight">bold</xsl:attribute> 2437 2437 </xsl:attribute-set> 2438 2438 2439 2439 <xsl:attribute-set name="strong-em"> 2440 <xsl:attribute name="font-weight">bold er</xsl:attribute>2440 <xsl:attribute name="font-weight">bold</xsl:attribute> 2441 2441 <xsl:attribute name="font-style">italic</xsl:attribute> 2442 2442 </xsl:attribute-set> … … 4348 4348 <item key="command"><![CDATA[<!-- BO htmlEntities --> 4349 4349 4350 <dtml-let htmlEntities="[]" htmlIn="str(localfs_read(ZMS_FILTER_IN ))">4350 <dtml-let htmlEntities="[]" htmlIn="str(localfs_read(ZMS_FILTER_IN,{'mode':'b','theshold':2**16}))"> 4351 4351 <dtml-call "htmlEntities.append('<!DOCTYPE html ')"> 4352 4352 <dtml-call "htmlEntities.append(' PUBLIC '+QUOT+'-//W3C//DTD XHTML 1.0 Transitional//EN'+QUOT)"> -
ZMS/trunk/version.txt
r750 r752 1 ZMS 2.11.4-0 11 ZMS 2.11.4-02 -
ZMS/trunk/zms.py
r711 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globals import HTMLFile27 26 from AccessControl.User import UserFolder 28 27 from App.Common import package_home 28 from App.special_dtml import HTMLFile 29 29 from OFS.Image import Image 30 30 from sys import * … … 908 908 if build != self.zms_build: 909 909 REQUEST.set('recurse_updateVersionBuild',True) 910 _globals.writeBlock(self,'[ZMS.updateVersion]: Synchronize object-model from build #%s%s to #%s%s...'%(build,patch,self.zms_build,self.zms_patch)) 910 911 message += recurse_updateVersionBuild( self, self, REQUEST) 912 _globals.writeBlock(self,'[ZMS.updateVersion]: Synchronize object-model from build #%s%s to #%s%s - Finished!'%(build,patch,self.zms_build,self.zms_patch)) 911 913 setattr( self, 'build', self.zms_build) 912 914 message += 'Synchronized object-model from build #%s%s to #%s%s!<br/>'%(build,patch,self.zms_build,self.zms_patch) 913 915 if build != self.zms_build or patch != self.zms_patch: 914 916 REQUEST.set('recurse_updateVersionPatch',True) 917 _globals.writeBlock(self,'[ZMS.updateVersion]: Synchronize object-model from patch #%s%s to #%s%s...'%(build,patch,self.zms_build,self.zms_patch)) 915 918 message += recurse_updateVersionPatch( self, self, REQUEST) 919 _globals.writeBlock(self,'[ZMS.updateVersion]: Synchronize object-model from patch #%s%s to #%s%s - Finished!'%(build,patch,self.zms_build,self.zms_patch)) 916 920 setattr( self, 'patch', self.zms_patch) 917 921 message += 'Synchronized object-model from patch #%s%s to #%s%s!<br/>'%(build,patch,self.zms_build,self.zms_patch) -
ZMS/trunk/zmscontainerobject.py
r750 r752 25 25 from __future__ import nested_scopes 26 26 from App.Common import package_home 27 from Globalsimport HTMLFile27 from App.special_dtml import HTMLFile 28 28 import AccessControl.Role 29 29 import copy … … 287 287 """ 288 288 289 self._checkWebDAVLock()290 289 message = '' 291 290 t0 = time.time() … … 320 319 """ 321 320 322 self._checkWebDAVLock()323 321 message = '' 324 322 t0 = time.time() … … 357 355 """ 358 356 359 self._checkWebDAVLock()360 357 message = '' 361 358 t0 = time.time() -
ZMS/trunk/zmscustom.py
r750 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globalsimport HTMLFile26 from App.special_dtml import HTMLFile 27 27 from types import StringTypes 28 28 import sys -
ZMS/trunk/zmslinkcontainer.py
r750 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globalsimport HTMLFile26 from App.special_dtml import HTMLFile 27 27 import time 28 28 import urllib … … 127 127 128 128 self._checkZMSLock() 129 self._checkWebDAVLock()130 129 message = '' 131 130 -
ZMS/trunk/zmslinkelement.py
r750 r752 23 23 24 24 # Imports. 25 from Globalsimport HTMLFile25 from App.special_dtml import HTMLFile 26 26 import sys 27 27 import urllib … … 279 279 280 280 self._checkZMSLock() 281 self._checkWebDAVLock()282 281 target = REQUEST.get( 'manage_target', '%s/manage_main'%self.getParentNode().absolute_url()) 283 282 message = '' -
ZMS/trunk/zmslog.py
r666 r752 23 23 24 24 # Imports. 25 from Globalsimport HTMLFile25 from App.special_dtml import HTMLFile 26 26 import logging 27 27 import os -
ZMS/trunk/zmsobject.py
r750 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globalsimport HTMLFile26 from App.special_dtml import HTMLFile 27 27 from types import StringTypes 28 from webdav.Lockable import ResourceLockedError29 28 import ZPublisher.HTTPRequest 30 29 import urllib … … 572 571 573 572 self._checkZMSLock() 574 self._checkWebDAVLock()575 573 message = '' 576 574 messagekey = 'manage_tabs_message' … … 882 880 req = self.REQUEST 883 881 if self.isCheckedOut(req) and not self.isCheckedOutByMe(req): 884 raise ResourceLockedError, 'This Object is locked by another user'882 raise 'ResourceLockedError', 'This Object is locked by another user' 885 883 886 884 # -------------------------------------------------------------------------- … … 1402 1400 def manage_moveObjUp(self, lang, REQUEST, RESPONSE): 1403 1401 """ ZMSObject.manage_moveObjUp """ 1404 self._checkWebDAVLock()1405 1402 parent = self.getParentNode() 1406 1403 sort_id = self.getSortId() … … 1419 1416 def manage_moveObjDown(self, lang, REQUEST, RESPONSE): 1420 1417 """ ZMSObject.manage_moveObjDown """ 1421 self._checkWebDAVLock()1422 1418 parent = self.getParentNode() 1423 1419 sort_id = self.getSortId() … … 1436 1432 def manage_moveObjToPos(self, lang, pos, REQUEST, RESPONSE): 1437 1433 """ ZMSObject.manage_moveObjToPos """ 1438 self._checkWebDAVLock()1439 1434 parent = self.getParentNode() 1440 1435 if pos == 1: -
ZMS/trunk/zmssqldb.py
r750 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globals import HTML,HTMLFile26 from App.special_dtml import HTMLFile 27 27 from Products.ZSQLMethods.SQL import SQLConnectionIDs 28 28 import copy … … 223 223 def getDA(self): 224 224 da = getattr(self,self.connection_id) 225 # Try to re-connect if not connected. 226 try: 227 dbc = da._v_database_connection 228 except AttributeError: 229 da.connect(da.connection_string) 230 dbc = da._v_database_connection 231 # Try to set character-set to utf-8 (should at least work on MySql). 232 try: 233 dbc.query('SET NAMES utf8') 234 dbc.query('SET CHARACTER SET utf8') 235 except: 236 pass 225 237 return da 226 238 -
ZMS/trunk/zmstrashcan.py
r121 r752 24 24 # Imports. 25 25 from __future__ import nested_scopes 26 from Globals import HTML,HTMLFile26 from App.special_dtml import HTMLFile 27 27 import copy 28 28 import string
Note: See TracChangeset
for help on using the changeset viewer.
