Share August 2003: Project of the Month

Boa Constructor - wxPython GUI Builder

Tracker: Patches

5 better support for Plone/Zope3 Developers - ID: 1620801
Last Update: Comment added ( yenzenz )

I have some minor patches:

Recognize different Zope-Specifi text/plain files:
<snip>
Index: Models/EditorModels.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Models/EditorModels.py,v
retrieving revision 1.20
diff -u -r1.20 EditorModels.py
--- Models/EditorModels.py 12 Oct 2006 12:01:32 -0000 1.20
+++ Models/EditorModels.py 22 Dec 2006 13:57:00 -0000
@@ -405,7 +405,7 @@
InternalFileModel.modelIdentifier: InternalFileModel,
})

-extMap[''] = TextModel
+extMap[''] = extMap['.metadata'] = extMap['.po'] = extMap['.pot'] =
extMap['.props'] = TextModel
extMap['.jpg'] = extMap['.gif'] = extMap['.png'] = extMap['.ico'] =
BitmapFileModel

EditorHelper.imageExtReg.extend(['.bmp', '.jpg', '.gif', '.png', '.ico'])
</snip>

Recognize zope 3 zcml and IMS-VDEX Files
<snip>
Index: Models/XMLSupport.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Models/XMLSupport.py,v
retrieving revision 1.9
diff -u -r1.9 XMLSupport.py
--- Models/XMLSupport.py 16 Oct 2006 12:59:31 -0000 1.9
+++ Models/XMLSupport.py 22 Dec 2006 13:57:00 -0000
@@ -61,5 +61,5 @@

#-------------------------------------------------------------------------
------

-Plugins.registerFileType(XMLFileController, aliasExts=('.dtd', '.xrc'))
+Plugins.registerFileType(XMLFileController, aliasExts=('.dtd', '.xrc',
'.zcml', '.vdex'))
Plugins.registerLanguageSTCStyle('XML', 'xml', XMLStyledTextCtrlMix,
'stc-styles.rc.cfg')
cvs diff: Diffing Plug-ins
</snip>

Recognize CMFFormController Pagetemplates:
<snip>
Index: Plug-ins/ProdPageTemplates.plug-in.py
===================================================================
RCS file:
/cvsroot/boa-constructor/boa/Plug-ins/ProdPageTemplates.plug-in.py,v
retrieving revision 1.10
diff -u -r1.10 ProdPageTemplates.plug-in.py
--- Plug-ins/ProdPageTemplates.plug-in.py 16 Oct 2006 13:08:43 -0000
1.10
+++ Plug-ins/ProdPageTemplates.plug-in.py 22 Dec 2006 13:57:00 -0000
@@ -31,6 +31,7 @@
EditorHelper.modelReg[ZopePageTemplateFSModel.modelIdentifier] =
ZopePageTemplateFSModel
EditorHelper.extMap['.pt'] = ZopePageTemplateFSModel
EditorHelper.extMap['.zpt'] = ZopePageTemplateFSModel
+EditorHelper.extMap['.cpt'] = ZopePageTemplateFSModel

#---Views-----------------------------------------------------------------
------

</snip>

And finally: Everything where Boa dont know the encoding: Try UTF8, as it
is better than crash every file-load (would be nice to have it as
configuration option).

<snip>
Index: Utils.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Utils.py,v
retrieving revision 1.56
diff -u -r1.56 Utils.py
--- Utils.py 2 Nov 2006 18:08:57 -0000 1.56
+++ Utils.py 22 Dec 2006 13:56:59 -0000
@@ -898,7 +898,7 @@

match = coding_re.search(str)
if not match:
- return None
+ return 'utf-8'
name = match.group(1)
# Check whether the encoding is known
import codecs

</snip>


Jens Klein ( yenzenz ) - 2006-12-22 14:12

5

Open

None

Nobody/Anonymous

Enhancement

None

Public


Comment ( 1 )




Date: 2007-05-02 17:46
Sender: yenzenzAccepting Donations


btw.: I have my own version - synced against CVS - at
http://svn.bluedynamics.net/svn/public/BoaConstructor/0.5.2-bda/

* Better Zope Support

* Gnome/Ubuntu Human Icons

* assumes utf8 if nothing different found (avoids most unicode-errors)

* Better german translations


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.