[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 `ATBTreeF

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

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

2007-04-02 Thread Tom Lazar
On Apr 2, 2007, at 9:06 PM, Sidnei da Silva wrote: My guess is that you just changed the base class without re-creating the FTI object in portal_types tool (by reinstalling your own Product), so you got an OLD object in portal_types tool that is not a DynamicViewFTI but a standard FTI. thanks

Re: The difference between getattr and restrictedTraverse

2007-06-10 Thread Tom Lazar
hi tim, hi martin, et. al. just finally catching up on this list after the PIKtipi sprint, so i'm chiming in a bit late here... On Jun 1, 2007, at 4:21 PM, Tim Hicks wrote: What I'm trying to do now is make it so that methods on my weblog object will return lists of IWeblogEntry-ish object

Re: The difference between getattr and restrictedTraverse

2007-06-10 Thread Tom Lazar
On Jun 10, 2007, at 1:51 PM, Tim Hicks wrote: This compares to what I envisage the view approach looking like:: title except that i wouldn't do the 'brains dance' inside the template but in the view class. i've adopted the practice of only passing out dictionaries or adapted o

Re: Atompub for Plone?

2007-08-06 Thread Tom Lazar
se case is for geography or GIS (sketched out at http://zcologia.com/news/494/designing-simple-gis-services-for-zope/ ), but I'm sure there's a lot of common ground that would be better served by a general purpose package. Hi Sean, I don't have the time or inclination to work o

Re: Atompub for Plone?

2007-08-13 Thread Tom Lazar
ner and IContained. The Zope 3 publisher already supports HTTP PUT and DELETE, does it not? It looks to me like the media/linking part of the protocol and cataloging is where most of the complexity lies. Unfortunately, I'm not going to be able to make it to the conference this year :( Ch

Re: Plone 3.0 UnicodeDecodeError

2007-09-08 Thread Tom Lazar
just a shot in the dark... have you used u"Schü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 use

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 y

Re: a good way to do user submissions

2007-09-08 Thread Tom Lazar
hi djay75, while i can't give you an absolute solution to your problem, i do want to discourage the approach of 'turning everything into an AT object', i.e. not to use a StackItem object in your case. from my own experience you don't even need a custom relationship class (i.e. sublass fro

Re: a good way to do user submissions

2007-09-15 Thread Tom Lazar
code right? or is there a better way? This kind of confusion really does make plone difficult for me to work with, having to evaluate which of many different methods to construct things. Am I alone in this or do others have similar problems? Tom Lazar wrote: hi djay75, while i can&#x

browserviews not recognized as view_templates

2007-09-21 Thread Tom Lazar
n this? thanks, tom [1] http://plone.org/products/quills/issues/97/? [2] http://dev.plone.org/collective/browser/quills.app/trunk/quills/ app/traversal.py -- Tom Lazar http://tomster.org ___ Product-Developers mailing list Product-Developers@lists.plone.org http://lists.plone.org/mailman/listinfo/product-developers

Contributor role should be sufficient to add content, no?

2007-09-22 Thread Tom Lazar
hi, i'm having trouble with the contributor role, the specific case is with Quills, where we grant users with Contributor Role to add weblog entries. and indeed, such users do get a 'Add Weblog entry' link in their 'Add' menu. However, when they click on that link they get an insufficient p

Re: Contributor role should be sufficient to add content, no?

2007-09-22 Thread Tom Lazar
barking up the wrong tree ;-) see also http://dev.plone.org/collective/changeset/49933 cheers, tom On 23.09.2007, at 02:43, Martin Aspeli wrote: Tom Lazar wrote: hi, i'm having trouble with the contributor role, the specific case is with Quills, where we grant users with Contribu

ANN: Quills 1.6 beta1 (Plone 3.0 compatibility release)

2007-09-25 Thread Tom Lazar
by creating issues in Quills issue tracker. Thanks! Tom -- Tom Lazar http://tomster.org ___ Product-Developers mailing list Product-Developers@lists.plone.org http://lists.plone.org/mailman/listinfo/product-developers

Re: broken rename after creation due to initializeArchetype tweak

2007-10-01 Thread Tom Lazar
david, thanks for sharing that -- i'll be needing this shortly and you just saved me some googling ;-) cheers, tom On 28.09.2007, at 04:15, David Bain wrote: Okay... events rock! woo-hoo! I got the meeting rename after creation back by getting rid of my initializeArchetype code and using

Re: new user registration failure

2007-10-08 Thread Tom Lazar
perhaps you removed some necessary paths in your skin's definition? check in portal_skins' Properties tab, whether your skin contains all paths of the 'Plone Default' skin. (and if not, add them) usually, a custom skin will contain all paths of 'Plone Default' plus some addititional ones on

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 dow

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, instance

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 is

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: image_siz

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 to avoid having to register so many resources. That way, you do ++reso

Re: [Product-Developers] Thoughts on championing OOTB themes

2008-02-21 Thread Tom Lazar
FWIW, i, too find deliverance very interesting but the way i understand things, deliverance will never be (and could never be) a full replacement for a 'handmade skin product'. but i'm sure it would be fine for the majority of usecases. in this context i was wondering whether it would make

Re: [Product-Developers] Re: Thoughts on championing OOTB themes

2008-02-21 Thread Tom Lazar
On 21.02.2008, at 17:13, Martin Aspeli wrote: Raphael Ritz wrote: Tom Lazar wrote: FWIW, i, too find deliverance very interesting but the way i understand things, deliverance will never be (and could never be) a full replacement for a 'handmade skin product'. but i'm sur

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: [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 co

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 m

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 writes: You got it! The 3.6.0 release of zope.testing refactored the large testrunner.py file into a testrunner/__init__.py package. I've put a 'zope.t

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 writes: Ross Patterson 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? You can disregard this. I'm rather

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 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 branch has been merged into trunk recen

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

2009-03-20 Thread Tom Lazar
great, thanks ben! On 19.03.2009, at 23:22, Benoit Delbosc wrote: Hi Tom Lazar a écrit : On 19.03.2009, at 00:48, Ross Patterson wrote: JeanMichel FRANCOIS writes: Last question, i have seen that funkload used in collective.loadtesting is branche called 'tomster-fix' but it