durusmail: quixote-users: Re: Illegal Python Names cookbook recipe
Illegal Python Names cookbook recipe
2004-04-05
2004-04-05
2004-04-05
Bug fixes (was: Illegal Python Names cookbook recipe)
2004-04-07
2004-04-07
Bug fixes (was: Illegal Python Names cookbookrecipe)
2004-04-07
Patches for .7a3
2004-04-07
Re: Patches for .7a3
2004-04-08
StaticFile is broken (Quixote-0.7a3, scgi-1.2a2, Apache/1.3.27, FreeBSD 4.7)
2004-04-08
Re: Patches for .7a3
2004-04-21
2004-04-21
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
Re: Illegal Python Names cookbook recipe
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-08
2004-04-07
2004-04-07
2004-04-07
2004-04-06
2004-04-05
2004-04-05
2004-04-05
Re: R: [Quixote-users] Illegal Python Names cookbook recipe
2004-04-06
Re: Illegal Python Names cookbook recipe
Tom Jenkins
2004-04-07
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Graham Fawcett wrote:
| Here's a short example that really works, with no changes to Publisher:
|
|      import _dollar_one, foo, bar
|
|      _q_exports = ['foo', 'bar']
|
|      _other_exports = {
|          '$one': _dollar_one,
|      }
|
|      _q_exports.extend(_other_exports.keys())
|
|      def _q_resolve(name):
|          return _other_exports.get(name)
|
| I actually tried this one before posting it to the list. :-;
|
| -- Graham

This one works well, and looks fine to me.  I think it should be
included as viable option (if not recommendation) for these types of issues.

+1 and a gold star to Graham .
- --
Tom Jenkins
devIS - Development Infostructure
http://www.devis.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0-nr2 (Windows XP)
Comment: Using GnuPG with MultiZilla - http://enigmail.mozdev.org

iD8DBQFAdEskV7Yk9/McDYURAlWIAJ93aZGmN4pTGQeE7Z/+/zSrAs7TmgCggqXu
sHp2Ob+2GrTXPK6y+UYqvsM=
=4TaD
-----END PGP SIGNATURE-----



reply