[Zope] FunctionalTestCase commits transactions

2008-11-03 Thread Peter Bengtsson
... # Commit the sandbox for good measure transaction.commit() ... -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/ma

Re: [Zope] FunctionalTestCase commits transactions

2008-11-05 Thread Peter Bengtsson
ts in a completely different way as each test can build on each other (assuming order of methods is respected) similar to how doctests are done where you have blocks of shell code split between text. If this is the way it has to be to test with zope.testbrowser in zope 2 then

[Zope] Call PageTemplateFile class instances

2008-11-13 Thread Peter Bengtsson
1, 0)), ('setSourceFile', 'main_template'), ('beginScope', {'define-macro': 'master'}), ('optTag', ('metal:block', None, 'metal', 0, [('startTag', ('metal:block', [('define-macro', 'master

Re: [Zope] Call PageTemplateFile class instances

2008-11-13 Thread Peter Bengtsson
#x27;, globals()) def render_page(self): html = self.page(self.REQUEST) # ERROR!! I don't understand how it works and I wish there was a way to apply these settings from a function instead of having to copy and paste it into every instance creating class. 2008/11/13 Pet

Re: [Zope] Call PageTemplateFile class instances

2008-11-13 Thread Peter Bengtsson
2008/11/13 Andrew Milton <[EMAIL PROTECTED]>: > +---[ Peter Bengtsson ]-- > | I've kind of work it out. The trick is to write some boiler plate in > | the class definition like this:: > | > | from zope import traversing, component, interface >

Re: [Zope] Call PageTemplateFile class instances

2008-11-13 Thread Peter Bengtsson
2008/11/13 Andreas Jung <[EMAIL PROTECTED]>: > On 13.11.2008 17:53 Uhr, Peter Bengtsson wrote: >> >> This used to work in zope 2.8 but not now in zope 2.10 (actually zope >> 2.10.7 to be exact) >> >> from Products.PageTemplates.PageTemplateFile import Pag

Re: [Zope] How to find unused Images

2008-11-17 Thread Peter Bengtsson
sts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___

Re: [Zope] FunctionalTestCase commits transactions

2008-11-17 Thread Peter Bengtsson
2008/11/17 Dieter Maurer <[EMAIL PROTECTED]>: > Peter Bengtsson wrote at 2008-11-5 15:14 +: >> ... >>> When I wrote a functional test browser (years before "zope3"), >>> I emulated the Zope publisher rather than calling it directly >>> i

Re: [Zope] Learning to use a BTreeFolder2

2008-11-25 Thread Peter Bengtsson
p1=other&p2=au&p3=tagline > ___ > 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 >

Re: [Zope] sorting ids in python

2008-12-11 Thread Peter Bengtsson
t; 'DTMLDocument','ZipFolder','File','Image']) > objs.sort() > for id, object in objs: > path=object.absolute_url() > robert Personally I prefer to always use objectValues(). Sorting isn't ob

Re: [Zope] The proxy server received an invalid response from an upstream server.

2008-12-12 Thread Peter Bengtsson
01p20980101.html > Sent from the Zope - General mailing list archive at Nabble.com. > > ___ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/m

Re: [Zope] single zsql on multiple tables or multiple zsql s

2008-12-13 Thread Peter Bengtsson
lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.

Re: [Zope] problem with a form in IE 7

2008-12-15 Thread Peter Bengtsson
> 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/listinfo/zop

Re: [Zope] problem with a form in IE 7

2008-12-15 Thread Peter Bengtsson
2008/12/15 : > Quoting Peter Bengtsson : > >> Has nothing to do with Zope but... >> Use Firefox to debug it and you'll get to see the error. >> put method="post" on form tag and the submission won't be visible in the URL. > I've had this happen

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

2009-04-13 Thread Peter Bengtsson
IWIbr9KYylGQCgucaj2Sx1UsPjRRp2ugJJx2DP > /aUAnixLmfZCl7ZDYY7uOUwrItcqmHVX > =g85K > -END PGP SIGNATURE- > > ___ > Zope maillist  -  z...@zope.org > http://mail.zope.org/mailman/listinfo/zope > **   No cross posts or HTM

Re: [Zope] Request time grows with memory size

2009-04-27 Thread Peter Bengtsson
   | PGP-Publickey auf Anfrage > > > > ___ > Zope maillist  -  z...@zope.org > http://mail.zope.org/mailman/listinfo/zope > **   No cross posts or HTML encoding!  ** > (Related lists - >  http://mail.zope.org/ma

Re: [Zope] Building a fast, scalable yet small Zope application

2009-04-27 Thread Peter Bengtsson
delven-it.no > > ___ > Zope maillist  -  z...@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] Building a fast, scalable yet small Zope application

2009-04-27 Thread Peter Bengtsson
since those tools form the backbone of catalogueing. > > Hedley > ___ > Zope maillist  -  z...@zope.org > http://mail.zope.org/mailman/listinfo/zope > **   No cross posts or HTML encoding!  ** > (Related lists - >  http://mail.zope

Re: [Zope] Problem with POST and text/xml

2009-07-11 Thread Peter Bengtsson
ket 3 for persistent reuse. > > > ___ > Zope maillist  -  z...@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

[Zope] acl_users and encrypted passwords

2009-08-07 Thread Peter Bengtsson
When you encrypt your passwords in an acl_users User Folder, is there a way to check that the old password is correct? I'm building an app that allows the user to change her password with the usual form of: Old: New: Confirm: -- Peter Bengtsson, work ww

Re: [Zope] acl_users and encrypted passwords

2009-08-07 Thread Peter Bengtsson
._encryptPassword('word')) When running this you get this output:: self._encryptPassword('word')= '{SSHA}dxZSdvO5CiaMbDuCC0mAreI0R6nqc5RyYFGo' self._encryptPassword('word')= '{SSHA}pup1PWzONwMnGXk/itXd6rhySF8MOuI57SO6' self._encryptPassword(&

Re: [Zope] acl_users and encrypted passwords

2009-08-07 Thread Peter Bengtsson
2009/8/7 Andreas Jung : > On 07.08.09 17:22, Andreas Jung wrote: >> On 07.08.09 17:10, Peter Bengtsson wrote: >> >>> No, it's different every time. >>> >>> >> Using private methods is unlikely the road to success. >> There is some o

Re: [Zope] strange database read conflict error

2009-08-28 Thread Peter Bengtsson
zope > **   No cross posts or HTML encoding!  ** > (Related lists - >  https://mail.zope.org/mailman/listinfo/zope-announce >  https://mail.zope.org/mailman/listinfo/zope-dev ) > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com fun cros

Re: [Zope] strange database read conflict error

2009-08-28 Thread Peter Bengtsson
imes or few but slow times. > Thanks again, > Dragos > > On Fri, Aug 28, 2009 at 12:19 PM, Peter Bengtsson wrote: >> The fact that the class is Products.Transience.Transience.Increaser >> makes me suspect that you're using sessions and within the same >> session y

Re: [Zope] strange database read conflict error

2009-08-28 Thread Peter Bengtsson
ior. ... or maybe I am looking in > the wrong place. > > Also, told you before, I even erased the object from the Data.fs and > then packed it. Conflicts stopped. After I have created a new object > and rename it with the old id the conflicts showed up again... > > Thanks

Re: [Zope] http return code of standard_error_message

2009-09-07 Thread Peter Bengtsson
maillist  -  z...@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://mail.zope.org/mailman/listinfo/zope-dev ) > -- Peter Bengtsson, work www.f

Re: [Zope] Problem with Zodb connections pool

2009-10-14 Thread Peter Bengtsson
RECAAYFAkrVrT4ACgkQ+gerLs4ltQ5HagCeJ1X32zT+LOMasY90fzmBolzR > Q6MAn3qHhkjENxxr7B24z54fsj4TCfQT > =ETsW > -END PGP SIGNATURE- > > ___ > Zope maillist  -  z...@zope.org > https://mail.zope.org/mailman/listinfo/zope > **   No cross

Re: [Zope] Prevent a logger from writing to event.log

2009-10-16 Thread Peter Bengtsson
his plans will work." > Rodney McKay, Stargate Atlantis > > ___ > Zope maillist  -  z...@zope.org > https://mail.zope.org/mailman/listinfo/zope > **   No cross posts or HTML encoding!  ** > (Related lists - >  https://mail.zope.org/mailman/listinfo/zope-ann

[Zope] Zope 2.12 and ZPT

2010-05-01 Thread Peter Bengtsson
in zope.conf just for Page Templates to not convert 'nbsp;' into '\xa0\xc2'? -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com fun crosstips.org ___ Zope maillist - Zope@zope.org https://mail.zo

Re: [Zope] Zope 2.12 and ZPT

2010-05-01 Thread Peter Bengtsson
On 1 May 2010 14:40, Andreas Jung wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Peter Bengtsson wrote: >> I'm trying to get a product running in Zope 2.12 which I installed in >> a virtualenv with easy_install. It starts fine and all but when I try >

Re: [Zope] Zope 2.12 and ZPT

2010-05-01 Thread Peter Bengtsson
On 1 May 2010 15:40, Andreas Jung wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Peter Bengtsson wrote: > >> >>> "the unicode conflict resolver"? >>> My app does not have any non-ascii characters until user input is >>> add

Re: [Zope] Zope Catalog sorting

2010-05-29 Thread Peter Bengtsson
_ > Zope maillist  -  z...@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://mail.zope.org/mailman/listinfo/zope-dev ) > -- Pet

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

2010-07-13 Thread Peter Bengtsson
_ > Zope maillist  -  z...@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://mail.zope.org/mailman/listinfo/zo

Re: [Zope] commit problems psycopg

2010-08-23 Thread Peter Bengtsson
fo/zope > **   No cross posts or HTML encoding!  ** > (Related lists - >  https://mail.zope.org/mailman/listinfo/zope-announce >  https://mail.zope.org/mailman/listinfo/zope-dev ) > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com fun c

Re: [Zope] Persist password in CookieCrumbler

2010-10-22 Thread Peter Bengtsson
No cross posts or HTML encoding!  ** > (Related lists - >  https://mail.zope.org/mailman/listinfo/zope-announce >  https://mail.zope.org/mailman/listinfo/zope-dev ) > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com fun crosstips.org _

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

2010-12-08 Thread Peter Bengtsson
 ** >> (Related lists - >> https://mail.zope.org/mailman/listinfo/zope-announce >> https://mail.zope.org/mailman/listinfo/zope-dev ) > > ___ > Zope maillist  -  z...@zope.org > https://mail.zope.org/mailman/listinfo/zope >

[Zope] Peewee and Zope

2010-12-30 Thread Peter Bengtsson
ges for inspiration. Even better way to avoid re-inventing the wheel would be if there already was a package or some code I could try. Has anybody built anything like this they're willing to share? (nothing found by googling) [1] https://github.com/coleifer/peewee -- Peter Bengt

Re: [Zope] MemoryError: out of memory

2011-01-27 Thread Peter Bengtsson
Gf3kLJirEgw4= > =WPMi > -----END PGP SIGNATURE- > > ___ > Zope maillist  -  Zope@zope.org > https://mail.zope.org/mailman/listinfo/zope > **   No cross posts or HTML encoding!  ** > (Related lists - >  https://mail.zope.org/m

[Zope] 2.13 upgrade problems

2011-06-03 Thread Peter Bengtsson
terbe/dev/ZOPE/Zope2-2.13.7/eggs/ZODB3-3.10.2-py2.6-macosx-10.4-x86_64.egg/ZODB/serialize.py", line 605, in getState return unpickler.load() TypeError: ('argument list must be a tuple', , None) -- Peter Bengtsson, home www.peterbe.com fun donecal.com work www.mozilla.

Re: [Zope] File upload again

2011-10-14 Thread Peter Bengtsson
arset=cp1250 > > ___ > 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://ma

<    1   2   3   4   5