Re: [Zope] A basic question

2012-07-14 Thread Kristian Thy
On Sat, Jul 14, Giampiero Benvenuti wrote: I have a python script in my zope instance: dt=DateTime(2012,1) print dt print dt.strftime('%Y') print dt.year() return printed 2012/01/01 00:00:00 GMT+2 2011 2012 Why do I get two different values for the year (2011, 2012)? It would seem

Re: [Zope] [JOB][OT?] Position for a Python/Zope developer in Pula, Cagliari (CA), Italy

2010-07-13 Thread Kristian Thy
On Tue, Jul 13, Stephan Richter wrote: On Tuesday, July 13, 2010, Marco Bizzarri wrote: * IDE tools (emacs does not count as an IDE; vi* neither; Eclipse+PyDev is preferred); I am usually not commenting on things like that, but: What a turn off! This is one of the worst requirements I

[Zope] AccessRule eats part of my URL

2010-06-23 Thread Kristian Thy
Dear List, I am trying to add an AccessRule to a folder so our friendly Monster redirects people to the same object in another folder in the Zope root, i.e. if people visit https://myurl.invalid/foo/bar/baz I would like them redirected to https://myurl.invalid/quux/bar/baz I have a

Re: [Zope] AccessRule eats part of my URL

2010-06-23 Thread Kristian Thy
On Wed, Jun 23, Kristian Thy wrote: Dear List, How can I make it pick up the right object? An off-list solution made its way to me: from zExceptions import Redirect rewritten_url = context.REQUEST['URL'].replace('foo', 'quux') rewritten_url += '/' + '/'.join(reversed