-----BEGIN PGP SIGNED MESSAGE-----
First of all, thank you all for the answers. I think boa is a great
product, and I'm strongly advocating it inside my company in order to
have all the person using it.
As a very small contribute to the community, I have a snippet to
contribute for those using boa to develop zope/python products.
When editing file system based page templates, you don't have syntax
highlighting, because boa do not associate the extension with the
You can modify the ProdPageTemplates.plug-in.py, in the Plug-ins
directory, so that you read:
EditorHelper.extMap['.pt'] = ZopePageTemplateFSModel
EditorHelper.extMap['.zpt'] = ZopePageTemplateFSModel
Also, if you need to use the i18n namespace, you can add it also to
the page templates modifing the ZopeLib/ZopeViews.py file as follows:
~ 'tal tal:block tal:content tal:replace tal:condition
~ 'tal:define tal:repeat tal:omit-tag tal:on-error '\
~ 'tales '\
~ 'metal metal:block metal:use-macro metal:define-macro
~ 'metal:define-slot '
~ i18n_attributes =\
~ 'i18n i18n:translate i18n:attributes'
~ self.keywords = self.keywords + ' public !doctype '+
~ zope_zsql_tags + zope_attributes + zope_pt_attributes +
If necessary, I can contribute a diff... don't know if these things
are already in the CVS
Riaan Booysen wrote:
| Hi Marco,
| Marco Bizzarri wrote:
|> Hi all.
|> We're using boa in our development enviroment. We are quite happy
|> with the current setup and the functionality of boa, but we have
|> some questions:
|> 1) we have some problems while saving python source files; in
|> particular, the problem is that boa reformats the output, adding
|> some indenting in the wrong places; this has become quite
| As someone else mentioned, sounds like you have the auto-reindent
| option on (it is off by default)
| I don't know what else it could be.
|> 2) is it possible not to show the Inspector and the toolbar
|> window? since we use mainly boa for Zope products development, we
|> have little use for these two tools;
| Also answered elsewhere, -C command-line option.
|> 3) is it possible to change the of the cursor, so that it is a
|> block rather than a single line?
| Not as a preference, but you may edit the source directly, e.g
| Views/SourceViews.py in the constructor for EditorStyledTextCtrl
| you may add the following code
| self.SetCaretWidth(20) # or however thick you want the caret
| self.SetCaretPeriod(0) # If you want it to stop blinking
| Cheers, Riaan.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----