Changeset 752


Ignore:
Timestamp:
26.10.2009 17:53:28 (2 years ago)
Author:
chris
Message:

zms-2.11.4-02

Location:
ZMS/trunk
Files:
1 deleted
40 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/ZMSFormatProvider.py

    r121 r752  
    2626from __future__ import nested_scopes 
    2727from zope.interface import implements 
    28 from Globals import HTMLFile 
     28from App.special_dtml import HTMLFile 
    2929import copy 
    3030# Product Imports. 
  • ZMS/trunk/ZMSGlobals.py

    r750 r752  
    2626from AccessControl import AuthEncoding 
    2727from App.Common import package_home 
    28 from Globals import HTMLFile 
     28from App.special_dtml import HTMLFile 
    2929from DateTime.DateTime import DateTime 
    3030from cStringIO import StringIO 
  • ZMS/trunk/ZMSItem.py

    r121 r752  
    2525from __future__ import nested_scopes 
    2626from DateTime.DateTime import DateTime 
    27 from Globals import HTMLFile, Persistent 
     27from App.special_dtml import HTMLFile 
     28from Persistence import Persistent 
    2829from Acquisition import Implicit 
    29 from OFS.PropertySheets import PropertySheets, vps 
    30 from webdav.Lockable import ResourceLockedError 
    31 import OFS.SimpleItem, OFS.ObjectManager, webdav.Collection 
     30import OFS.SimpleItem, OFS.ObjectManager 
    3231import string 
    33 import _webdav 
    3432 
    3533 
     
    4341class ZMSItem( 
    4442        OFS.ObjectManager.ObjectManager, 
    45         webdav.Collection.Collection, 
    4643        OFS.SimpleItem.Item, 
    4744        Persistent,                             # Persistent.  
     
    127124      return RESPONSE.redirect('manage?lang=%s'%lang) 
    128125 
    129  
    130     ############################################################################ 
    131     ### 
    132     ###  WebDAV 
    133     ### 
    134     ############################################################################ 
    135  
    136     # Standard DAVProperties + ZMSProperties. 
    137     # --------------------------------------- 
    138     propertysheets=vps(_webdav.ZMSPropertySheets) 
    139  
    140  
    141     # -------------------------------------------------------------------------- 
    142     #  ZMSItem._checkWebDAVLock 
    143     # -------------------------------------------------------------------------- 
    144     def _checkWebDAVLock(self): 
    145       if self.wl_isLocked(): 
    146         raise ResourceLockedError, 'This %s Object is locked via WebDAV' % self.meta_type 
    147  
    148  
    149     # -------------------------------------------------------------------------- 
    150     #  ZMSItem.document_src 
    151     # -------------------------------------------------------------------------- 
    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_src 
    158  
    159     # -------------------------------------------------------------------------- 
    160     #  ZMSItem.PUT 
    161     # -------------------------------------------------------------------------- 
    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 value 
    193             value_new = v.get(attr, lang) 
    194              
    195             # if value is used as datetime, convert to correct form 
    196             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 form 
    204             if datatype == 'boolean': 
    205                 value_new = bool(value_new) 
    206              
    207             # get old value 
    208             value_old = self.getObjProperty(attr, REQUEST) 
    209              
    210             # if value has changed 
    211             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 RESPONSE 
    220  
    221  
    222     # -------------------------------------------------------------------------- 
    223     #  ZMSItem.listDAVObjects 
    224     # -------------------------------------------------------------------------- 
    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  
    240126################################################################################ 
  • ZMS/trunk/ZMSMetamodelProvider.py

    r724 r752  
    2626from __future__ import nested_scopes 
    2727from zope.interface import implements 
    28 from Globals import HTMLFile 
     28from App.special_dtml import HTMLFile 
    2929import copy 
    3030# Product Imports. 
  • ZMS/trunk/__init__.py

    r723 r752  
    3131 
    3232# Imports. 
    33 from Globals import ImageFile 
    3433from App.Common import package_home 
     34from App.ImageFile import ImageFile 
    3535import OFS.misc_ 
    3636import os 
     
    157157            ) 
    158158             
    159         context.registerBaseClass(zms.ZMS) 
    160159         
    161160        # automated registration for util 
  • ZMS/trunk/_accessmanager.py

    r553 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727from AccessControl.User import UserFolder 
    2828from types import StringTypes 
  • ZMS/trunk/_cachemanager.py

    r613 r752  
    304304      """ CacheableObject.manage_getCachedPages """ 
    305305       
    306       self._checkWebDAVLock() 
    307306      message = '' 
    308307      t0 = time.time() 
     
    332331      """ CacheableObject.manage_clearCachePages """ 
    333332       
    334       self._checkWebDAVLock() 
    335333      message = '' 
    336334      t0 = time.time() 
  • ZMS/trunk/_confmanager.py

    r723 r752  
    2727from cStringIO import StringIO 
    2828from App.Common import package_home 
     29from App.special_dtml import HTMLFile 
    2930from DateTime.DateTime import DateTime 
    30 from Globals import HTMLFile 
    3131from OFS.CopySupport import absattr 
    3232from OFS.Image import Image 
     
    206206      """ 
    207207      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') 
    210215      conf_xml = self.xmlParse( conf) 
     216      print "conf_xml=",conf_xml 
    211217      for source in self.xmlNodeSet(conf_xml,'source'): 
    212218        location = source['attrs']['location'] 
     219        print "location=",location 
    213220        if location.startswith('http://'): 
    214221          try: 
     
    222229            _globals.writeError( self, "[getConfFiles]: can't get conf-files from remote URL=%s"%location) 
    223230        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 
    230238      conf.close() 
    231239      # Filter. 
  • ZMS/trunk/_copysupport.py

    r750 r752  
    267267      t0 = time.time() 
    268268       
    269       # Check if object is locked via WebDAV 
    270       self._checkWebDAVLock() 
    271        
    272269      # Analyze request 
    273270      cp=self._get_cb_copy_data(cb_copy_data=None,REQUEST=REQUEST) 
  • ZMS/trunk/_deprecatedapi.py

    r464 r752  
    2323 
    2424# Imports. 
    25 from Globals import HTMLFile 
     25from App.special_dtml import HTMLFile 
    2626# Product Imports. 
    2727import _globals 
  • ZMS/trunk/_filtermanager.py

    r666 r752  
    2525from __future__ import nested_scopes 
    2626from App.Common import package_home 
    27 from Globals import HTMLFile 
     27from App.special_dtml import HTMLFile 
    2828import ZPublisher.HTTPRequest 
    2929import copy 
  • ZMS/trunk/_ftpmanager.py

    r337 r752  
    2323 
    2424# Imports. 
    25 from Globals import HTMLFile 
     25from App.special_dtml import HTMLFile 
    2626import urllib 
    2727import ftplib 
  • ZMS/trunk/_globals.py

    r627 r752  
    540540################################################################################ 
    541541# 
    542 Traces 
     542Logging 
    543543# 
    544544################################################################################ 
    545545""" 
     546 
     547LOG = logging.getLogger("ZMS") 
    546548 
    547549# ------------------------------------------------------------------------------ 
     
    565567def writeLog(self, info): 
    566568  try: 
     569    LOG.debug(info) 
    567570    zms_log = getattr( self, 'zms_log', None) 
    568571    if 'DEBUG' in zms_log.logged_entries: 
     
    578581def writeBlock(self, info): 
    579582  try: 
     583    LOG.info(info) 
    580584    zms_log = getattr( self, 'zms_log', None) 
    581585    if 'INFO' in zms_log.logged_entries: 
     
    592596  info = '?' 
    593597  try: 
     598    LOG.error(info) 
    594599    t,v,tb = sys.exc_info() 
    595600    v = str(v) 
  • ZMS/trunk/_importable.py

    r337 r752  
    2424# Imports. 
    2525from App.Common import package_home 
    26 from Globals import HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727import ZPublisher.HTTPRequest 
    2828import os 
  • ZMS/trunk/_mediadb.py

    r377 r752  
    2323 
    2424# Imports. 
    25 from Globals import HTMLFile, Persistent 
     25from App.special_dtml import HTMLFile 
     26from Persistence import Persistent 
    2627from ZPublisher.Iterators import filestream_iterator 
    2728import OFS.SimpleItem 
  • ZMS/trunk/_metacmdmanager.py

    r252 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727from Products.PythonScripts import PythonScript 
    2828import copy 
  • ZMS/trunk/_multilangmanager.py

    r345 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727import copy 
    2828import urllib 
  • ZMS/trunk/_objinputs.py

    r750 r752  
    2323 
    2424# Imports. 
    25 from Globals import HTMLFile 
     25from App.special_dtml import HTMLFile 
    2626# Product Imports. 
    2727import _globals 
  • ZMS/trunk/_objtypes.py

    r267 r752  
    2323 
    2424# Imports. 
    25 from Globals import HTMLFile 
     25from App.special_dtml import HTMLFile 
    2626# Product Imports. 
    2727import _fileutil 
  • ZMS/trunk/_sequence.py

    r121 r752  
    2323 
    2424# Imports. 
    25 from Globals import HTMLFile 
     25from App.special_dtml import HTMLFile 
    2626import urllib 
    2727# Product Imports. 
  • ZMS/trunk/_versionmanager.py

    r676 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727import copy 
    2828import operator 
  • ZMS/trunk/_workflowmanager.py

    r750 r752  
    2525from __future__ import nested_scopes 
    2626from App.Common import package_home 
    27 from Globals import HTMLFile 
     27from App.special_dtml import HTMLFile 
    2828import ZPublisher.HTTPRequest 
    2929import copy 
  • ZMS/trunk/_zmsattributecontainer.py

    r698 r752  
    2828 
    2929# Imports. 
    30 from Globals import HTMLFile 
     30from App.special_dtml import HTMLFile 
    3131from OFS.Folder import Folder 
    32 from webdav.Resource import Resource 
    33 from webdav.Lockable import ResourceLockedError 
    34 from webdav.WriteLockInterface import WriteLockInterface 
    3532import urllib 
    3633import time 
     
    156153    return RESPONSE.redirect('manage_propertiesForm?manage_tabs_message=%s'%(urllib.quote(message))) 
    157154 
    158  
    159   """ 
    160   ############################################################################## 
    161   # 
    162   #   WebDAV 
    163   # 
    164   ############################################################################## 
    165   """ 
    166  
    167   # WebDAV Interface. 
    168   # ----------------- 
    169   __implements__ = (WriteLockInterface,) 
    170  
    171   # ---------------------------------------------------------------------------- 
    172   #  ZMSObject._checkWebDAVLock 
    173   # ---------------------------------------------------------------------------- 
    174   def _checkWebDAVLock(self): 
    175     if self.wl_isLocked(): 
    176       raise ResourceLockedError, 'This %s Object is locked via WebDAV' % self.meta_type 
    177  
    178   # ---------------------------------------------------------------------------- 
    179   #  ZMSObject.document_src 
    180   # ---------------------------------------------------------------------------- 
    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_src 
    186  
    187155################################################################################ 
  • ZMS/trunk/_zreferableitem.py

    r750 r752  
    2323 
    2424# Imports. 
    25 from Globals import HTML, HTMLFile 
     25from App.special_dtml import HTMLFile 
    2626import copy 
    2727import operator 
  • ZMS/trunk/changes.txt

    r750 r752  
    13711371[01271] Increased col-size threshold for string -> text in SQL-Datasource from 50 to 128 (requested by fh). 
    13721372-------------------------------------------------- 
     13732009-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  
    3939<input type="hidden" name="outfilename" value="<dtml-var outfilename>"/> 
    4040 
    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="&nbsp;&raquo;&nbsp;"/> 
    4342<hr size="1"/> 
    4443 
     
    7473         ></td><td class="form-small" style="color:blue"><b>&nbsp;{IN}</b></td></tr> 
    7574        <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;" 
    7776          ><dtml-var "filter['format'].capitalize()"> <font style="font-weight: bold; color:#D9E100; background-color:#000000;">&nbsp;ZMS&nbsp;</font></td></tr> 
    7877        <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;" 
    8079          ><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;">&nbsp;ZMS&nbsp;</font></td></tr> 
    8180        <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;" 
    8382          ><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;">&nbsp;ZMS&nbsp;</font></td></tr> 
    8483        </dtml-if> 
     
    9089           <dtml-if "filterProcess.get('file',None)"> 
    9190            <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;"> 
    9392              <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"/>&nbsp;<span style="border: 2px solid red;"></dtml-if> 
    9493              <img src="<dtml-var "f.getMimeTypeIconSrc()">" title="<dtml-var "f.getContentType()">, <dtml-var "f.getDataSizeStr()">" border="0" align="absmiddle"/> 
     
    101100          <dtml-else> 
    102101          <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> 
    104103           <dtml-if "filterProcess.get('file',None)"> 
    105104            <dtml-let f="filterProcess['file']"> 
     
    140139 
    141140<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="&nbsp;&raquo;&nbsp;"/> 
    145142</form> 
    146143 
  • ZMS/trunk/dtml/ZMSContainerObject/manage_main_change.dtml

    r750 r752  
    44<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"/> 
    55</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> 
    166</dtml-unless> 
    177 
  • ZMS/trunk/dtml/ZMSContainerObject/manage_system.dtml

    r723 r752  
    126126  &dtml-sequence-key; <dtml-if title>(&dtml-title;)</dtml-if> 
    127127  </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> 
    137128  <dtml-if locked_in_version> 
    138129    <dtml-if modified_in_version> 
  • ZMS/trunk/dtml/object/f_breadcrumbs.dtml

    r750 r752  
    4343 </dtml-in> 
    4444</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> 
    5445</span> 
  • ZMS/trunk/import/default_win32.filter.xml

    r698 r752  
    24042404  <xsl:attribute-set name="th"> 
    24052405    <xsl:attribute name="font-size">9pt</xsl:attribute> 
    2406     <xsl:attribute name="font-weight">bolder</xsl:attribute> 
     2406    <xsl:attribute name="font-weight">bold</xsl:attribute> 
    24072407    <xsl:attribute name="text-align">center</xsl:attribute> 
    24082408    <xsl:attribute name="background-color">silver</xsl:attribute> 
     
    24312431   
    24322432  <xsl:attribute-set name="b"> 
    2433     <xsl:attribute name="font-weight">bolder</xsl:attribute> 
     2433    <xsl:attribute name="font-weight">bold</xsl:attribute> 
    24342434  </xsl:attribute-set> 
    24352435  <xsl:attribute-set name="strong"> 
    2436     <xsl:attribute name="font-weight">bolder</xsl:attribute> 
     2436    <xsl:attribute name="font-weight">bold</xsl:attribute> 
    24372437  </xsl:attribute-set> 
    24382438   
    24392439  <xsl:attribute-set name="strong-em"> 
    2440     <xsl:attribute name="font-weight">bolder</xsl:attribute> 
     2440    <xsl:attribute name="font-weight">bold</xsl:attribute> 
    24412441    <xsl:attribute name="font-style">italic</xsl:attribute> 
    24422442  </xsl:attribute-set> 
     
    43484348<item key="command"><![CDATA[<!-- BO htmlEntities --> 
    43494349 
    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}))"> 
    43514351 <dtml-call "htmlEntities.append('<!DOCTYPE html ')"> 
    43524352 <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-01 
     1ZMS 2.11.4-02 
  • ZMS/trunk/zms.py

    r711 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTMLFile 
    2726from AccessControl.User import UserFolder 
    2827from App.Common import package_home 
     28from App.special_dtml import HTMLFile 
    2929from OFS.Image import Image 
    3030from sys import * 
     
    908908      if build != self.zms_build: 
    909909        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)) 
    910911        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)) 
    911913        setattr( self, 'build', self.zms_build) 
    912914        message += 'Synchronized object-model from build #%s%s to #%s%s!<br/>'%(build,patch,self.zms_build,self.zms_patch) 
    913915      if build != self.zms_build or patch != self.zms_patch: 
    914916        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)) 
    915918        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)) 
    916920        setattr( self, 'patch', self.zms_patch) 
    917921        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  
    2525from __future__ import nested_scopes 
    2626from App.Common import package_home 
    27 from Globals import HTMLFile 
     27from App.special_dtml import HTMLFile 
    2828import AccessControl.Role 
    2929import copy 
     
    287287      """  
    288288       
    289       self._checkWebDAVLock() 
    290289      message = '' 
    291290      t0 = time.time() 
     
    320319      """  
    321320       
    322       self._checkWebDAVLock() 
    323321      message = '' 
    324322      t0 = time.time() 
     
    357355      """ 
    358356       
    359       self._checkWebDAVLock() 
    360357      message = '' 
    361358      t0 = time.time() 
  • ZMS/trunk/zmscustom.py

    r750 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727from types import StringTypes 
    2828import sys 
  • ZMS/trunk/zmslinkcontainer.py

    r750 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727import time 
    2828import urllib 
     
    127127         
    128128      self._checkZMSLock() 
    129       self._checkWebDAVLock() 
    130129      message = '' 
    131130       
  • ZMS/trunk/zmslinkelement.py

    r750 r752  
    2323 
    2424# Imports. 
    25 from Globals import HTMLFile 
     25from App.special_dtml import HTMLFile 
    2626import sys 
    2727import urllib 
     
    279279       
    280280      self._checkZMSLock() 
    281       self._checkWebDAVLock() 
    282281      target = REQUEST.get( 'manage_target', '%s/manage_main'%self.getParentNode().absolute_url()) 
    283282      message = '' 
  • ZMS/trunk/zmslog.py

    r666 r752  
    2323 
    2424# Imports. 
    25 from Globals import HTMLFile 
     25from App.special_dtml import HTMLFile 
    2626import logging 
    2727import os 
  • ZMS/trunk/zmsobject.py

    r750 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727from types import StringTypes 
    28 from webdav.Lockable import ResourceLockedError 
    2928import ZPublisher.HTTPRequest 
    3029import urllib 
     
    572571       
    573572      self._checkZMSLock() 
    574       self._checkWebDAVLock() 
    575573      message = '' 
    576574      messagekey = 'manage_tabs_message' 
     
    882880      req = self.REQUEST 
    883881      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' 
    885883 
    886884    # -------------------------------------------------------------------------- 
     
    14021400    def manage_moveObjUp(self, lang, REQUEST, RESPONSE): 
    14031401      """ ZMSObject.manage_moveObjUp """ 
    1404       self._checkWebDAVLock() 
    14051402      parent = self.getParentNode() 
    14061403      sort_id = self.getSortId() 
     
    14191416    def manage_moveObjDown(self, lang, REQUEST, RESPONSE): 
    14201417      """ ZMSObject.manage_moveObjDown """ 
    1421       self._checkWebDAVLock() 
    14221418      parent = self.getParentNode() 
    14231419      sort_id = self.getSortId() 
     
    14361432    def manage_moveObjToPos(self, lang, pos, REQUEST, RESPONSE): 
    14371433      """ ZMSObject.manage_moveObjToPos """ 
    1438       self._checkWebDAVLock() 
    14391434      parent = self.getParentNode() 
    14401435      if pos == 1: 
  • ZMS/trunk/zmssqldb.py

    r750 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTML, HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727from Products.ZSQLMethods.SQL import SQLConnectionIDs 
    2828import copy 
     
    223223    def getDA(self): 
    224224      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 
    225237      return da 
    226238 
  • ZMS/trunk/zmstrashcan.py

    r121 r752  
    2424# Imports. 
    2525from __future__ import nested_scopes 
    26 from Globals import HTML, HTMLFile 
     26from App.special_dtml import HTMLFile 
    2727import copy 
    2828import string 
Note: See TracChangeset for help on using the changeset viewer.