On Sat, Jul 07, 2007 at 01:16:17AM +1000, Nigel Sim wrote:
> Hi Robert, thanks for the response. I did sort this out in the end. It
> turned out to be a Python/Zope problem. When I set the TZ variable to
> AEST Plone would report the tzname as UTC which is wrong, but it has
> the correct timezone offset. Now for some timezone names the DateTime
> zope module will ignore the tzname and work backwards from the timezone
> offset, but others DateTime will take the tzname and calculate the
> offset from the name. This is what was happening in my case.
> The solution turned out to be to set TZ='AEST-10'. It doesn't seem to
> be a valid posix time zone code, but it means python sets the correct
> tzname.
> More the end....
Good catch.
>
> <snip />
>
> To avoid this again I've made myself an Extensions/Install.py file with
> the following contents so I can use the quick installer:
> from Products.CMFCore.utils import getToolByName
> def install(portal):
> setup_tool = getToolByName(portal, 'portal_setup')
> old_context = setup_tool.getImportContextID()
> setup_tool.setImportContext('profile-listen:default')
> setup_tool.runAllImportSteps()
> setup_tool.setImportContext(old_context)
> return "Successfully imported the Listen profile"
> ENDS
> Many thanks
> Nigel
> ps, I've planning a few modifications to listen for my site, mainly on
> the membership management page such as adding users by group, and I
> would like to know if anyone would take offence to me making a branch
> for these.
We've thought a little bit about this use case, and made an attempt to
be able to support it. Theoretically, it *should* only require
overriding the membership adapters to suit your needs. Then you can ask
the appropriate membership policy to verify that the action is allowed,
and go through your membership adapter to add them.
And feel free to create a branch for yourself.
Robert
--
Archive:
http://www.openplans.org/projects/listen/lists/listen-dev/archive/2007/07/1183736350225
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.