Re: [Product-Developers] collective.funkload tests (was: collective.loadtesting failed on zope.testing.testrunner)

2009-03-19 Thread Tom Lazar
resending this after it first bounced due to me using wrong mailaccount... On 16.03.2009, at 19:30, Ross Patterson wrote: Ross Patterson m...@rpatterson.net writes: You got it! The 3.6.0 release of zope.testing refactored the large testrunner.py file into a testrunner/__init__.py package.

Re: [Product-Developers] Re: collective.funkload tests

2009-03-19 Thread Tom Lazar
On 18.03.2009, at 23:52, Ross Patterson wrote: Ross Patterson m...@rpatterson.net writes: Ross Patterson m...@rpatterson.net writes: Secondly, I can't get the collective.funkload tests to run anymore. They just seem to hang. Can you get them to run? When was the last time they ran for you?

Re: [Product-Developers] Re: collective.loadtesting failed on zope.testing.testrunner

2009-03-19 Thread Tom Lazar
On 19.03.2009, at 00:48, Ross Patterson wrote: JeanMichel FRANCOIS jeanmichel.franc...@makina-corpus.com writes: Last question, i have seen that funkload used in collective.loadtesting is branche called 'tomster-fix' but it's seems to be the 1.9.1 release, is this right ? the tomster-fixes

Re: [Product-Developers] Pruct development with Plone3.3

2008-12-14 Thread Tom Lazar
On 14.12.2008, at 09:05, Jaroslav Šatkevič wrote: Hello, I use buildout, so i want just configure my buildout to work with Plone 3.3 and develop my new product with newes (not stable) Plone. It is possible? a very laudable undertaking ;) and since that's so, there's a tool specifically

Re: [Product-Developers] UnicodeEncodeError in widget description

2008-12-05 Thread Tom Lazar
i've had the same experience but didn't spend much time investigating it. my guess is, that it's because the description field is part of the dublin core. i further suspect that there's the same bug in the way the description field deals with unicode that i myself have produced in my own

Re: [Product-Developers] custom at edit form?

2008-02-26 Thread Tom Lazar
hi derek, hth: http://tomster.org/blog/customizing-base_edit-using-widgets cheers, tom On Feb 26, 2008, at 7:27 PM, Derek Richardson wrote: i need to write a custom AT CT edit form. I've misplaced my copy of optilude's book. :( I've looked for the edit form for the OOTB at ct and haven't

Re: how to not have to put ++resource++ for your skin resources

2007-12-04 Thread Tom Lazar
On Dec 4, 2007, at 2:27 PM, Martin Aspeli wrote: David Bain wrote: To answer my own question. It looks like I need register the directories in: profiles/default/skins.xml of my product. Note that you can also use browser:resourceDirectory / to avoid having to register so many

download URLs for FileField should end with filename not fieldname

2007-11-12 Thread Tom Lazar
has anybody got an idea how to have a download url for a FileField attribute that includes the name of the uploaded file? currently, if an AT's FileField is named e.g. 'filedata' then all the download links for that AT content type's file end in /filedata which is confusing, when people

Re: download URLs for FileField should end with filename not fieldname

2007-11-12 Thread Tom Lazar
thanks encolpe, however, i don't fully understand: On Nov 12, 2007, at 2:48 PM, Encolpe Degoute wrote: If you can suppose that you never have two times the same filename used in a single document, yes, that's the case you can iterate on schema and use FileField.getFilename(self,

Re: download URLs for FileField should end with filename not fieldname

2007-11-12 Thread Tom Lazar
ah, of course! thanks encolpe, that was the nudge that i needed! cheers, tom On Nov 12, 2007, at 4:57 PM, Encolpe Degoute wrote: Tom Lazar a écrit : i already know how to retrieve the filename of the uploaded file, i want to know how it is possible to use it in a url so that the file

Re: Getting an image depending on a variable

2007-11-12 Thread Tom Lazar
On Nov 12, 2007, at 5:03 PM, Johannes Schwenk wrote: Hi all, I have the following problem: I want to get the width and height of an image in my pagetemplate. The thing is, it should be depending on a stored attribute. I would get the stored attribute like this in a TALES expression:

Re: Plone 3.0 UnicodeDecodeError

2007-09-08 Thread Tom Lazar
just a shot in the dark... have you used uSchüler or just Schüler? also, in any python code of mine that uses umlauts, i always make sure to explicitly state the encoding by adding this as the first line: # -*- coding: utf-8 -*- hth, tom On 02.09.2007, at 14:33, alois wrote: I used

Re: Advice on Selectively Hiding Byline

2007-09-08 Thread Tom Lazar
how about using a local utility and give it a method 'showByLine (context, member)' which you can then use for a simple condition? then you could implement your policy inside that method. also, you could register different local utilities to provide different policies in different areas of

[Product Developers] AttributeError: getAvailableViewMethods for ATBTree-based content

2007-04-02 Thread Tom Lazar
hi there, i'm developing a product agains the current plone 3.0 bundle and want to convert the base class of an existing AT-based content type from BaseFolder to ATBTreeFolder because it will need to hold several thousand objects. i did this by simply replacing `BaseFolder` with

Re: [Product Developers] AttributeError: getAvailableViewMethods for ATBTree-based content

2007-04-02 Thread Tom Lazar
On Apr 3, 2007, at 12:47 AM, Martin Aspeli wrote: you say Factory Type Information with Dynamic View or whatever the ridiculous meta-type is in the GS XML files. i just figured that out a few minutes ago before reading your post -- indeed, that was the culprit... ;-) i guess, we'll all