Re: [Zope] A basic question

2012-07-14 Thread Andrew Milton
| | Why do I get two different values for the year (2011, 2012)? | | It would seem strftime defaults to a timezone to the left of GMT+2. strftime converts to UTC -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https

Re: [Zope] Question about Upgrading Zope and OS X Server

2010-12-07 Thread Andrew Milton
. | | - - Check for upgrades to the products, and their compatibility with | Zope versions. Test them, and your site. after each upgrade. The move from 2.9 to 2.10 is likely to be the most painful part in terms of legacy Zope apps. A lot of products will break on 2.10 -- Andrew Milton

Re: [Zope] Need some newbie tal help

2010-10-05 Thread Andrew Milton
']) == 'Team'name/b/td Try using css tddiv tal:replace=string:${player/name} tal:attributes=class python:test(player['name'] == 'Team', 'someboldcss', '') //td -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org

Re: [Zope] Need some newbie tal help

2010-10-05 Thread Andrew Milton
+---[ Andrew Milton ]-- | +---[ Mark Phillips ]-- | | I have a table and I am putting data into the cells using tal. I want to bold the data under a certain condition. I tried this, | | but it didn't work: | | | | td tal:content=string:${player

Re: [Zope] Need some newbie tal help

2010-10-05 Thread Andrew Milton
+---[ Mark Phillips ]-- | | | On Tue, Oct 5, 2010 at 10:28 AM, Andrew Milton a...@theinternet.com.au wrote: | | +---[ Mark Phillips ]-- | | I have a table and I am putting data into the cells using tal. I want to bold the data under

Re: [Zope] removing an exuserfolder from an exported ZEXP

2010-09-28 Thread Andrew Milton
, then you're probably missing the mySQL python libs. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https

Re: [Zope] Storing DTML in SQL

2010-08-18 Thread Andrew Milton
might have a bit of a mountain to climb there d8) Are you sure you need to store the DTML in the db? -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] Storing DTML in SQL

2010-08-18 Thread Andrew Milton
have found is on Zopelabs | (http://www.zopelabs.com/cookbook/1078612026) | | Sorry wrong recipe try this: | | http://www.zopelabs.com/cookbook/993850737/1011691351 Do I really have to explain why that particular recipe is a bad idea? d8) -- Andrew Milton a...@theinternet.com.au

Re: [Zope] Storing DTML in SQL

2010-08-18 Thread Andrew Milton
+---[ Richard Harley ]-- | On 18/08/10 17:38, Andrew Milton wrote: | +---[ Garry Saddington ]-- | | Andrew Milton wrote: | | +---[ Garry Saddington ]-- | | | Garry Saddington wrote: | | | Justin Dunsworth wrote

Re: [Zope] Storing DTML in SQL

2010-08-18 Thread Andrew Milton
code is executed out of strings in the db. Whether it's necessary or not in this instance is debatable. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

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

2010-07-13 Thread Andrew Milton
its job d8) -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https

Re: [Zope] javascript experts?

2010-05-22 Thread Andrew Milton
for IE in this respect. Use ids as well as names and grab the items out of the DOM. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope] cron like service

2010-05-05 Thread Andrew Milton
+---[ Garry Saddington ]-- | Can anyone suggest the easiest way to automatically have a python script | fire at set times of the day/month/year. A cron job that uses (wget | curl | fetch | lynx | netcat | etc) to hit your script. -- Andrew Milton

Re: [Zope] Zope for .NET

2010-04-16 Thread Andrew Milton
. | | It would be nice if it had a host of open source add ins. Basically | Zope functionality for .NET. | | Is there anything like that out there -- or even something close? Tried Zope? d8) -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope

Re: [Zope] Problem Building 2.10.x

2010-03-24 Thread Andrew Milton
OSX (given it's just unix under the hood). -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org

Re: [Zope] Dieter Mauer's Reference Product

2010-03-16 Thread Andrew Milton
back-ported from Z3 into Z2, so not really unbelievable d8) Otherwise working things break crossing the 2.9/2.10 barrier. I imagine the behaviour will be present from 2.10 onwards. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope

Re: [Zope] japanese encoding

2010-02-26 Thread Andrew Milton
saying this directory will hold additional installed | packages... should there be something here? | | text = 'blah blah' #okay | text = unicode(text, 'utf-8') #okay | text = text.encode('japanese.iso-2022-jp') #fails with lookuperror Tried simply; text.encode('iso-2022-jp') ? -- Andrew Milton

Re: [Zope] japanese encoding

2010-02-26 Thread Andrew Milton
+---[ 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.python.iso-2022-jp -- Andrew Milton a...@theinternet.com.au

Re: [Zope] japanese encoding

2010-02-26 Thread Andrew Milton
+---[ 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.python.iso-2022-jp

Re: [Zope] japanese encoding

2010-02-26 Thread Andrew Milton
and see if that causes an error that's otherwise being hidden. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https

Re: [Zope] python help needed

2010-01-19 Thread Andrew Milton
option is to do transaction sub-commits manually (there's plenty of google links for how to do this). You probably can't do this directly from a python script, you'll have to setup an External Method to do it (or alter the security for the transaction machinery). -- Andrew Milton

Re: [Zope] Error in Copy/Import during Migration

2010-01-07 Thread Andrew Milton
). Then, a | Data.fs.temp appears on the new server and grows to the appropriate | size. However, when my script tries to commit the transaction I get an | EOF error: File size limits on the new server restricting to say 2GB? -- Andrew Milton a...@theinternet.com.au

Re: [Zope] Error in Copy/Import during Migration

2010-01-07 Thread Andrew Milton
+---[ Christopher N. Deckard ]-- | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | On 1/7/10 2:30 PM, Andrew Milton wrote: | +---[ Brian Brinegar ]-- | | I'm fairly well versed on the inner workings of Zope, but yesterday I've | | run

Re: [Zope] Error in Copy/Import during Migration

2010-01-07 Thread Andrew Milton
+---[ Christopher N. Deckard ]-- | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | On 1/7/10 2:30 PM, Andrew Milton wrote: | +---[ Brian Brinegar ]-- | | I'm fairly well versed on the inner workings of Zope, but yesterday I've | | run

Re: [Zope] Error in Copy/Import during Migration

2010-01-07 Thread Andrew Milton
+---[ Christopher N. Deckard ]-- | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | On 1/7/10 2:39 PM, Andrew Milton wrote: | +---[ Christopher N. Deckard ]-- | | -BEGIN PGP SIGNED MESSAGE- | | Hash: SHA1 | | | | On 1/7/10 2:30 PM

Re: [Zope] exUserFolder and Zope 2.12

2010-01-01 Thread Andrew Milton
+---[ William Heymann ]-- | | On Thursday 17 December 2009, Andrew Milton wrote: | +---[ Baiju M ]-- | | | Hi, | | In exUserFolder there are few exceptions raised like this: | | | | raise 'LoginRequired', self.docLogin(self, request

Re: [Zope] exUserFolder and Zope 2.12

2010-01-01 Thread Andrew Milton
+---[ Andrew Milton ]-- | +---[ William Heymann ]-- | | | | On Thursday 17 December 2009, Andrew Milton wrote: | | +---[ Baiju M ]-- | | | | | Hi, | | | In exUserFolder there are few exceptions raised like

Re: [Zope] DateTime Issues

2009-12-23 Thread Andrew Milton
is why your times are out by 6 hours... your distance from GMT. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https

Re: [Zope] DateTime Issues

2009-12-23 Thread Andrew Milton
it up yourself though. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope

Re: [Zope] DateTime Issues

2009-12-23 Thread Andrew Milton
expects (as most of us expect at first) the time not to be converted to the local zone just because you want to format the time display. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope

Re: [Zope] exUserFolder and Zope 2.12

2009-12-17 Thread Andrew Milton
with; request.RESPONSE.setStatus(401) request.RESPONSE.setHeader('Content-Type','text/html') request.RESPONSE.write(self.docLogin(self,request)) -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope

Re: [Zope] learning BASIC computer skills.

2009-12-15 Thread Andrew Milton
that... haha -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https

Re: [Zope] UTF-8 problem with zope2.10 and postgresql

2009-11-07 Thread Andrew Milton
+---[ Tres Seaver ]-- | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | Andrew Milton wrote: | +---[ Martijn Pieters ]-- | | | | 2009/11/6 Garry Saddington ga...@schoolteachers.co.uk: | | I've always been amused by this 'outdated

Re: [Zope] Accessing object properties from __init__.py

2009-09-29 Thread Andrew Milton
From any other code you're probably out of luck. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org

Re: [Zope] strange database read conflict error

2009-08-28 Thread Andrew Milton
problems Sean Hastings did a fairly good write up a number of years ago; https://mail.zope.org/pipermail/zope/2004-September/153704.html Might be a bit dated now, but, might help put things into perspective. -- Andrew Milton a...@theinternet.com.au ___ Zope

Re: [Zope] Getting Zope code to output to event.log

2009-08-10 Thread Andrew Milton
executed... -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope] Getting Zope code to output to event.log

2009-08-10 Thread Andrew Milton
source, instead of the installed Zope code. Check your zopectl or runzope script and see what ZOPE_HOME is set to. The that *should* be the root of your installed zope. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http

Re: [Zope] Getting Zope code to output to event.log

2009-08-05 Thread Andrew Milton
any examples from you it's hard to tell. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman

Re: [Zope] Getting Zope code to output to event.log

2009-08-05 Thread Andrew Milton
+---[ Ken Winter ]-- | | -Original Message- | From: Andrew Milton [mailto:a...@theinternet.com.au] | Sent: Wednesday, August 05, 2009 3:49 PM | To: Ken Winter | Cc: 'Zope List' | Subject: Re: [Zope] Getting Zope code to output to event.log | | +---[ Ken

Re: [Zope] moving a zope install

2009-07-30 Thread Andrew Milton
-- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org

Re: [Zope] Disable local loopback connections

2009-07-28 Thread Andrew Milton
are worth their class time. Is there a question in there, or just a statement about things you like and don't like? -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

Re: [Zope] HTTP Request Denial of Service Vulnerability

2009-07-24 Thread Andrew Milton
+---[ ryan_per...@mcafee.com ]-- | | 1. This is likely a false positive, unless the original poster was running ridiculously old software. Ridiculously old software is not outside the realms of probability -- Andrew Milton a...@theinternet.com.au

Re: [Zope] HTTP Request Denial of Service Vulnerability

2009-07-19 Thread Andrew Milton
blame me, I'm not the costumer involved... -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman

Re: [Zope] zeo client tracking

2009-06-17 Thread Andrew Milton
/HTTP_HOST style=display:none / -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] call http_host script

2009-06-05 Thread Andrew Milton
+---[ iarly selbir | ski0s ]-- | I added following code to a python script and when try to save it returns | | Prints, never read 'printed' variable. | | Code: | | req = context.REQUEST | addr = req.get('URL') | print addr return printed -- Andrew Milton

Re: [Zope] bug? pagetemplate using strftime

2009-05-07 Thread Andrew Milton
components such as; fetcha.day() fetcha.month() fetcha.year() -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] bug? pagetemplate using strftime

2009-04-22 Thread Andrew Milton
). -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org

Re: [Zope] bug? pagetemplate using strftime

2009-04-20 Thread Andrew Milton
own DateTime -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-12 Thread Andrew Milton
+---[ Dieter Maurer ]-- | Andrew Milton wrote at 2009-4-11 21:46 +1000: | ... | So your position is, the code is fine, but, the docs suck so don't use | it. Well the docs have always sucked, the zope-3 docs don't seem any | better. Perhaps the people deprecating

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-11 Thread Andrew Milton
+---[ Chris Withers ]-- | Andrew Milton wrote: | My position is that plenty of people use Zope 2 without plone, | | Your position appeared to be that it's a good idea to tempt new users | into using plain zope 2. I assert that it's not because zope.org is | dead

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-11 Thread Andrew Milton
+---[ Chris Withers ]-- | Andrew Milton wrote: | +---[ Chris Withers ]-- | | Andrew Milton wrote: | | My position is that plenty of people use Zope 2 without plone, | | | | Your position appeared to be that it's a good idea to tempt new users

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-03 Thread Andrew Milton
+---[ Chris Withers ]-- | Andrew Milton wrote: | | Plenty of people use it without plone. You might want to crawl out of | | the vacuum you live in. | | | | Yes, and I'm one of them, but I don't think it's fair to try and tempt | | new users into it... | | | | I'm happy

Re: [Zope] LocalFS unsupported and doesn't work without patching...

2009-04-02 Thread Andrew Milton
? -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org

Re: [Zope] Zope 4.0, maybe not such a bad idea...

2009-04-02 Thread Andrew Milton
+---[ Chris Withers ]-- | Remember this: | Seriously, how do people feel about this? You can do anything you want with your time... who are we to judge? d8) -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-02 Thread Andrew Milton
, | it conveys the right things: | | - mature | - stable | - maybe not the best choice for new development. ^ for you -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-02 Thread Andrew Milton
| zope.org site should be moved to old.zope.org (it must remain | available for the time being (with URL redirections to the Products | and Member area). | | Why does it need to keep living even at old.zope.org? Why do you care if it does? -- Andrew Milton a...@theinternet.com.au

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-02 Thread Andrew Milton
+---[ Chris Withers ]-- | Andrew Milton wrote: | | - mature | | - stable | | - maybe not the best choice for new development. | ^ for you | | Indeed, but classic doesn't have any bad connotations as far as I'm | concerned, and it'll need

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-02 Thread Andrew Milton
+---[ Chris Withers ]-- | Andrew Milton wrote: | | Indeed, but classic doesn't have any bad connotations as far as I'm | | concerned, and it'll need to keep living as long as Plone relies on it, | | which will be forever... | | Plenty of people use it without plone. You

Re: [Zope] How to add existing folder in Zope

2009-03-30 Thread Andrew Milton
+---[ Tim Nash ]-- | [snip long story about noone paying attention to the actual requirements] I notice none of them installed plone either. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http

Re: [Zope] How to add existing folder in Zope

2009-03-28 Thread Andrew Milton
be recommended to simply serve files from the file system. Get a grip. You might want to install plone to do it, but, 99 times out of 100 that isn't the correct solution to recommend to *anyone* that just wants to serve files from the file system. -- Andrew Milton a...@theinternet.com.au

Re: [Zope] How to add existing folder in Zope

2009-03-28 Thread Andrew Milton
don't agree with Tim he will stick his fingers in his ears and go la la la la I'm not listening -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

Re: [Zope] 404 error

2009-03-21 Thread Andrew Milton
shows; (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: Not Found) -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org

Re: [Zope] session data object question

2009-03-11 Thread Andrew Milton
. Name the submit button and check for the name of the button in the request. input type=submit name=theButton value=Press Me theButton will appear in REQUEST (and REQUEST.form) if the button was pressed. -- Andrew Milton a...@theinternet.com.au ___ Zope

Re: [Zope] session data object question

2009-03-11 Thread Andrew Milton
case you are essentially re-submitting the form. I would suggest setting a cookie with a timestamp. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] session data object question

2009-03-11 Thread Andrew Milton
case. | | There is no difference between a refresh and a normal page load. Unless you refresh after the form submit :-) Of course if the broken design posted to a handler script instead of to itself, a lot of problems could be side-stepped :-) -- Andrew Milton a...@theinternet.com.au

Re: [Zope] Avoiding page redirects from TAL

2009-03-10 Thread Andrew Milton
, so it's probably unwise to redirect without returning some status to the caller than indicates the rest of the processing is redundant. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] Avoiding page redirects from TAL

2009-03-10 Thread Andrew Milton
. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope] timeout on a page

2009-03-09 Thread Andrew Milton
: [snip] | Any ideas how I can do this 2 things? Do some reading, or advertise for a competent zope coder. I'm all for helping people, but, you don't seem to be doing the minimum amount of preparation before asking for help. -- Andrew Milton a...@theinternet.com.au

Re: [Zope] psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))

2009-03-06 Thread Andrew Milton
+---[ amol kumbhar ]-- | This is my full error Log | | Site Error Log at /error_log Yes you also need to update your ZPsycopg in your Zope products (it's part of the psycopg distribution). -- Andrew Milton a...@theinternet.com.au

Re: [Zope] psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))

2009-03-06 Thread Andrew Milton
version of ZPsycopg. You have a psycopg 2.0.6 *somewhere* (the python package, not the Zope adapter). Either in your Zope's lib/python or in your site-packages for your python. You need to make sure that that is *also* 2.0.9 -- Andrew Milton a...@theinternet.com.au

Re: [Zope] how to check a user role with data entred by user?

2009-03-05 Thread Andrew Milton
. | | | | I would appreciate any help on the matter. in a python script; user = context.acl_users.getUser(theUserNameTheUserEnteredInTheForm) if user.has_role(['Role1', 'Role2']): # User has role log them in I suppose else: # Bad user! Bad! -- Andrew Milton a...@theinternet.com.au

Re: [Zope] how to check a user role with data entred by user?

2009-03-05 Thread Andrew Milton
(Pluggable Auth Source) plugins since it seems you want to do your own authentication. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope] psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))

2009-03-05 Thread Andrew Milton
publishing this resource. | | Error Type: ImportError | Error Value: psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3)) Your ZPsycopg and your psycopg don't match up version-wise. You say you have psycopg 2.0.9 but 2.0.6 was imported... -- Andrew Milton a...@theinternet.com.au

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-12 Thread Andrew Milton
No problem. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Andrew Milton
-- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Andrew Milton
+---[ Andrew Milton ]-- | | - Original Message - | | From: Fran?oise CONIL | | To: zope@zope.org | | Sent: Thursday, December 11, 2008 11:21 AM | | Subject: [Zope] Problem using dtml-in in ZSQL method | | | | | | Hello, | | | | My ZSQL method receive a *mylist

Re: [Zope] Call PageTemplateFile class instances

2008-11-13 Thread Andrew Milton
you're describing and I don't need to do all that implements garbage either. Are you sure you don't have some Product installed that's messing with it? -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman

Re: [Zope] Call PageTemplateFile class instances

2008-11-13 Thread Andrew Milton
+---[ Peter Bengtsson ]-- | I've kind of work it out. The trick is to write some boiler plate in | the class definition like this:: Does it work when you talk to it through Zope proper instead of trying to call it via the test harness? -- Andrew Milton [EMAIL PROTECTED

Re: [Zope] standard_error using zpt

2008-10-29 Thread Andrew Milton
From memory the following should be available; options/error_type options/error_value options/error_tb options/error_traceback options/error_message options/error_log_url -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http

Re: [Zope] .html from python

2008-10-17 Thread Andrew Milton
+---[ Garry Saddington ]-- | How would I do this: | | dtml_method = context.singleitemview.html | s = | return s dtml_method = getattr(context, 'singleitemview.html') return dtml_method(client=context, REQUEST={}, foo='bar') -- Andrew Milton [EMAIL PROTECTED

Re: [Zope] Zope 2.x for Py 2.6 as 64 bit Windows application?

2008-10-10 Thread Andrew Milton
| and antagonistic to actually being funny ;-) Well it would have been funny if it was porcine aviation devices... -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

Re: [Zope] which platform independent database?

2008-09-23 Thread Andrew Milton
-- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman

Re: [Zope] Displaying PIL Images in Zope Templates

2008-09-18 Thread Andrew Milton
image. -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org

Re: [Zope] pickle passing over a socket

2008-08-22 Thread Andrew Milton
of data. | | Then one could have another python process listening on the socket -- ready to | receive pickles for zope. Isn't this called ZEO? d8) -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman

Re: [Zope] pickle passing over a socket

2008-08-22 Thread Andrew Milton
to, put it in a data base for which there were | no zope connectors, etc. | | Please be _very_ detailed about your particular use. At least from what | wrote so far: this sounds like an idea of the last century. Sounds to me like someone just doesn't want to learn how to use RDBMS d8) -- Andrew

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-20 Thread Andrew Milton
| do not have a _p_jar attribute. SESSION does use its own store. -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] how to authenticate into zope as external user

2008-08-20 Thread Andrew Milton
in | DTML page, this information should be used for zope | authentication.ultimately i want one kind of hacking to directly | enter into zope http://www.zope.org/Products/user_management -- Andrew Milton [EMAIL PROTECTED] ___ Zope

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-20 Thread Andrew Milton
something in ZODBSESSION, you're essentially storing the same object twice in your ZODB. -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-20 Thread Andrew Milton
+---[ chaouche yacine ]-- | | Correct. I Quit... :( better not to store ZODB objects in the session and try to get some way around. So now you can go look at the Cache objects that Zope provides :-) -- Andrew Milton [EMAIL PROTECTED

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-20 Thread Andrew Milton
:-) | | -- | Andrew Milton | [EMAIL PROTECTED] | | If you are talking about RAM cache, HTTP cache etc., I don't know if they'll do the trick because, again, it's about caching objects that do not live in the ZODB, i.e I cannot go in the ZMI and click the cache tab on a python script or a page

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-20 Thread Andrew Milton
, and will disappear when the object leaves the object cache. If you manage to get a 2nd thread there will be nothing in the _v_ attribute, or wait 10 or so mins between requests... -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org

Re: [Zope] emails

2008-08-18 Thread Andrew Milton
- Zope@zope.org | http://mail.zope.org/mailman/listinfo/zope -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] emails

2008-08-18 Thread Andrew Milton
+---[ Michael Arnoldy ]-- | In all of my tries to stop the emails below, I may have blocked any replies you | might have sent me. | If so you can reach me at my secure address: [EMAIL PROTECTED] Dickhead -- Andrew Milton [EMAIL PROTECTED

Re: [Zope] python split

2008-08-17 Thread Andrew Milton
a regex -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope] Script (Python) insecure ?

2008-08-12 Thread Andrew Milton
) and stuff like ZClasses should die +oo -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] Timeout on server when python script is running

2008-07-25 Thread Andrew Milton
pops up.. | | I tried and found where to change timeouts in zope.conf, but nothing changed. | Wrong place? Please help, thanks! Try writing something (a '.') to the RESPONSE every few minutes to keep it alive. -- Andrew Milton [EMAIL PROTECTED

Re: [Zope] VirtualHostMonster: access to all content in instance

2008-07-04 Thread Andrew Milton
+---[ Jonas Meurer ]-- | Hey Andrew, | | thanks for your fast reply. | | On 04/07/2008 Andrew Milton wrote: | | Is this a known issue? I consider that as a quite serious bug, as both | | project1 and project3 might be private and should not be published over

Re: [Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Andrew Milton
/Gosh/zope278/Products/SeamusCore/Extensions/wf_script_despatcher.py, | line 41, in workflowscripts2methods | AssertionError It does tell you the script and the line of the External Method that is causing the problem when being instanced via _getOb() (from objectValues) -- Andrew Milton [EMAIL

Re: [Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Andrew Milton
+---[ Peter Bengtsson ]-- | 2008/7/3 Andrew Milton [EMAIL PROTECTED]: | +---[ Peter Bengtsson ]-- | | 2008/7/3 Andreas Jung [EMAIL PROTECTED]: | | | | | | --On 3. Juli 2008 15:41:52 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote

Re: [Zope] Open an HTML file in zope

2008-06-18 Thread Andrew Milton
='pageid request/pageids' span tal:replace=python getattr(context, pageid) / /span -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

  1   2   3   >