r13332 - ArchGenXML/trunk/src/archgenxml
"Dorneles Tremea" <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: deo
Date: Tue Dec 7 19:28:39 2010
New Revision: 13332
Modified:
ArchGenXML/trunk/src/archgenxml/ArchetypesGenerator.py
Log:
Made sure to massage methods containing code in unicode format.
Modified: ArchGenXML/trunk/src/archgenxml/ArchetypesGenerator.py
==============================================================================
--- ArchGenXML/trunk/src/archgenxml/ArchetypesGenerator.py (original)
+++ ArchGenXML/trunk/src/archgenxml/ArchetypesGenerator.py Tue Dec 7 19:28:39 2010
@@ -1275,7 +1275,10 @@
declaration = cl.getProtectionDeclaration(mt.getName())
if declaration:
print >> outfile, declaration
- print >> outfile, mt.src
+ source = mt.src
+ if isinstance(source, unicode):
+ source = source.encode('utf-8')
+ print >> outfile, source
print >> outfile
def generateMethod(self, outfile, m, klass, mode='class'):
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d