logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

CVS: CMF/CMFSetup - typeinfo.py:1.12.2.4 workflow.py:1.25.2.4: msg#00001

web.zope.cmf.cvs

Subject: CVS: CMF/CMFSetup - typeinfo.py:1.12.2.4 workflow.py:1.25.2.4

Update of /cvs-repository/CMF/CMFSetup
In directory cvs.zope.org:/tmp/cvs-serv12935/CMFSetup

Modified Files:
Tag: CMF-1_5-branch
typeinfo.py workflow.py
Log Message:
- fixed readDataFile calls for files in subdirs
- removed redundant _getWorkflowFilename in workflow.py


=== CMF/CMFSetup/typeinfo.py 1.12.2.3 => 1.12.2.4 ===
--- CMF/CMFSetup/typeinfo.py:1.12.2.3 Wed Jan 12 05:56:50 2005
+++ CMF/CMFSetup/typeinfo.py Mon Jan 17 05:40:01 2005
@@ -59,7 +59,12 @@

for type_info in tool_info[ 'types' ]:

- text = context.readDataFile( type_info[ 'filename' ] )
+ filename = type_info[ 'filename' ]
+ sep = filename.rfind( '/' )
+ if sep == -1:
+ text = context.readDataFile( filename )
+ else:
+ text = context.readDataFile( filename[sep+1:], filename[:sep] )
info = tic.parseXML( text )

klass_info = [ x for x in typeClasses


=== CMF/CMFSetup/workflow.py 1.25.2.3 => 1.25.2.4 ===
--- CMF/CMFSetup/workflow.py:1.25.2.3 Tue Dec 14 15:56:26 2004
+++ CMF/CMFSetup/workflow.py Mon Jan 17 05:40:01 2005
@@ -97,7 +97,13 @@

if info[ 'meta_type' ] == DCWorkflowDefinition.meta_type:

- wf_text = context.readDataFile( info[ 'filename' ] )
+ filename = info[ 'filename' ]
+ sep = filename.rfind( '/' )
+ if sep == -1:
+ wf_text = context.readDataFile( filename )
+ else:
+ wf_text = context.readDataFile( filename[sep+1:],
+ filename[:sep] )

( workflow_id
, title
@@ -796,7 +802,7 @@

def _getWorkflowFilename( workflow_id ):

- """ Return the name of the file which holds info for a given type.
+ """ Return the name of the file which holds info for a given workflow.
"""
return 'workflows/%s/definition.xml' % workflow_id.replace( ' ', '_' )

@@ -1131,13 +1137,6 @@
, ExternalMethod.meta_type : 'em'
, DTMLMethod.meta_type : 'dtml'
}
-
-def _getWorkflowFilename( wf_id ):
-
- """ Return the name of the file which holds info for a given workflow.
- """
- return 'workflows/%s/definition.xml' % wf_id.replace( ' ', '_' )
-

def _initDCWorkflow( workflow
, title


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation