Re: [Zope] japanese encoding

2010-02-28 Thread Aaron Maupin
Yusei TAHARA wrote: > Hi, > > Recent python includes japanese codecs so that you don't have to install > JapaneseCodecs any longer. If you use python2.1, it is needed. > import codecs codecs.lookup('iso-2022-jp') > Thanks Yusei! The above works within the Python console, but within a

Re: [Zope] japanese encoding

2010-02-26 Thread Aaron Maupin
Andrew Milton wrote: > try doing > > import japanese.aliases > > and see if that causes an error that's otherwise being hidden. > Hmmm. Within a Python script I get asked for my Zope username and password again, which isn't accepted, and then a 'You are not allowed to access 'aliases' in th

Re: [Zope] japanese encoding

2010-02-26 Thread Aaron Maupin
Perhaps I should also mention that I can log into the server, open up a python console, and type: >>> import japanese >>> text = 'blahblah' >>> text = unicode(text, 'utf-8') >>> text = text.encode('japanese.iso-2022-jp') with no problems. 'japanese' is installed in /usr/lib/python2.4/site-p

Re: [Zope] japanese encoding

2010-02-26 Thread Aaron Maupin
Andrew Milton wrote: > +---[ Aaron Maupin ]-- > | Andrew Milton wrote: > | > | >Tried simply; text.encode('iso-2022-jp') ? > | > | Yes, I've tried that. I get 'unknown encoding: iso-2022-jp' > > "japanese.pyth

Re: [Zope] japanese encoding

2010-02-26 Thread Aaron Maupin
Andrew Milton wrote: > Tried simply; text.encode('iso-2022-jp') ? Yes, I've tried that. I get 'unknown encoding: iso-2022-jp' Aaron ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

[Zope] japanese encoding

2010-02-26 Thread Aaron Maupin
Hi guys, I'm having trouble installing and using the japanese codecs (from http://www.python.jp/pub/JapaneseCodecs )with Zope on a shared host. I just can't seem to get the encodings available for the python used by the Zope install. Or, that is, I have installed the codecs and can 'import japan

Re: [Zope] Cheap Zope hosting

2009-07-31 Thread Aaron Maupin
> Now that HighSpeedRails is closing down at midnight tonight, does anyone > have any low-cost suggestions for hosting a handful of low-traffic > domains in a single Zope?? > Thanks I've been more than happy with Webfaction. I don't know what HighSpeedRails is or how they compare in price, but

Re: [Zope] Frustrated with Python and Frameworks. Zope, Grok, , Django, CherryPy

2007-11-27 Thread Aaron Maupin
Rene B <[EMAIL PROTECTED]> wrote: I'm beginning to think there's nothing out there for a newbie python programmer like myself. I'm a Network Admin that likes programming but doesn't have the time to get really proficient at it. ... Out of all the ones I've researched I like Zope 2 the b

Re: [Zope] catching shorter URLs

2007-07-09 Thread Aaron Maupin
Dieter Maurer wrote: > A "SiteAccess" "AccessRule" can do such things for you. > > Look around whether you find some documentation about "AccessRule"s > and how to tweak the request object in such a rule. Thanks Dieter! That indeed did the trick. It took a lot of digging around online (and se

[Zope] catching shorter URLs

2007-07-07 Thread Aaron Maupin
I'm trying to make pretty URLs for a game site I'm developing, and due to the hosting environment I'm somewhat limited in my Apache URL rewrites. (I've tried the normal mod_proxy / mod_rewrite rules and they haven't worked in this environment.) I'd like the visitors to see http://games.m