RE: [Zope3-Users] ForbiddenAttribute

2006-05-16 Thread dev
Hi Jachim [...] ForbiddenAttribute: ('street', simple_abook.entry.ABookEntry instance at 0x3afa828) [...] class ABookEntryEditView(EditView): __used_for__ = IABookEntry streetAddress_widget = CustomWidgetFactory(ObjectWidget, ABookEntry) Try to use a formlib form with a

RE: [Zope3-Users] ++skin++Boston bug

2006-05-23 Thread dev
Hi Marco [...] /me guesses this has to do with using the widget_row macro inside another widget_row, thus trying to render trtdtrtd/td/tr/td/tr and the browser closes the fieldset, td and tr when it encounters a tdtr sequence. There is something wrong if you get a widget_row inside

RE: [Zope3-Users] ++skin++Boston bug

2006-05-24 Thread dev
Hi Marco your part looks good to me. The use of widget_row in ObjectWidget not... What happen is, the Boston skin uses a table for rendering a label field block. Why this and not CSS. Simply because the left label side has a nother backgrund color. And this isn't possible with CSS. But doesn't

RE: [Zope3-Users] Calling PageTemplate in Content object

2006-05-24 Thread dev
Hi Tom [...] ... orderform.pt ... html body My City Is: div tal:replace=order/city/ /body /html ... step.message(request) *** Note how nothing is returned - no exceptions and no output. Have a look at zope/pagetemplate/readme.txt - it shows (one way) how to

RE: [Zope3-Users] testbrowser and file upload

2006-07-03 Thread dev
Hi Darryl I have found a strange behaviour with testbrowser and file objects. What appears to happen is that the cStringIO.StringIO that I pass to the file control in a form is converted to unicode before reaching the view handler. This then raises AttibuteError: Unicode has no read

[Zope3-Users] Replacing Macros with Contentprovider

2006-09-08 Thread ksmith93940-dev
Is it possible to use contentproviders as an alternative to macros for providing the look and feel of a site? I thought I saw someone mention something to this affect. Thanks. ksmith ___ Zope3-users mailing list Zope3-users@zope.org

[Zope3-Users] ANN: Viewlet examples

2006-09-12 Thread ksmith93940-dev
Hi Folks, Wow, viewlets are starting to look incredibly powerful. I'm posting my experimentation with them as a set of demos loosely based on the zope.viewlet readme. The first two demos are very simple and the third is a intermediate step towards the complex example in the readme. If you have

[Zope3-Users] Alternatives to macros

2006-09-13 Thread ksmith93940-dev
I'm investigating alternatives to macros, the following appears to work, but does anyone see anything particularly wrong or limiting with this implementation? Thanks, Kevin Smith app.py class PageView(BrowserView): content = pagetemplate.ViewPageTemplateFile('page.pt')

[Zope3-Users] testbrowser passes but view fails

2006-09-27 Thread ksmith93940-dev
I have a situation where the functional test passes but when the page is actually viewed a ComponentLookupError is raised. This test passes using zope.testbrowser browser.open('http://localhost/@@z3d.demo3.index.html') 'ViewletDemo3' in browser.contents True A quick sanity check

Re: [Zope3-Users] absolute_url in the viewlet ?

2006-10-02 Thread ksmith93940-dev
self.context.absolute_url looks very zope2ish, absolute_url is no longer inherited, it is an adapted component, so I believe the accepted Zope3 way is... from zope.app import zapi from zope.app.traversing.browser.interfaces import IAbsoluteURL . def render(self): url =

Re: [Zope3-Users] Re: Intended scope of viewlets?

2006-10-07 Thread ksmith93940-dev
I think the layer attribute may be missing. browser:page name=my.project.index.html for=* class=.myskin.SimplePage permission=zope.Public layer=.interfaces.MySkin / browser:template template=myskin_master.pt for=.interfaces.ISimplePage

[Zope3-Users] mapSchemasToDict

2006-10-12 Thread ksmith93940-dev
Perhaps this already exists somewhere, but I couldn't find it. Feed this function an object and it returns a dictionary of the associated schema key/value pairs including those that are PersistentList's of objects. Handy for view classes. Pointers and improvements welcome. Kevin Smith def

[Zope3-Users] Problems in sequences of custom objects display view

2006-10-13 Thread ksmith93940-dev
I'm looking into formlib and display widgets. If anyone on the list has an example, I'd love to see it. The following Objects of List example works perfectly for edit view. For the display view it shows the AddressBook schema fine, but shows the Person schema edit form. I've googled all day,

Re: [Zope3-Users] Field sets in zope3

2006-10-15 Thread ksmith93940-dev
At least part of this story is being worked on in z3c.multiform, however it's a project that states itself as being in it's infancy and doesn't seem to be very active. If anyone is interested in collaborating on this, I'm very interested in advancing this story. Kevin Smith Monterey County

Re: [Zope3-Users] Nested lists- iteration over non-sequence

2006-10-21 Thread ksmith93940-dev
Hi, Yes, one solution is custom widgets. Although I don't have a List of List example, I do have a List of Object example. It uses formlib, CustomWidgetFactory, ListSequenceWidget and ObjectWidget http://zope3demos.googlecode.com/svn/tags/zope3demos-200610-21/otherdemos/objectsofobjects2/

[Zope3-Users] adaptation/containers question

2006-11-09 Thread ksmith93940-dev
I'm trying to allow Zope3 Images in my IBlog container I've tried many variations of the follwoing without success. interfaces.py class IBloggable(Interface): Marker interface myclass.py class ImageBlogAdapter(object): implements(IBloggable) __name__ = __parent__ = None

[Zope3-Users] zc.table FieldColumn question

2006-11-17 Thread ksmith93940-dev
Does anyone have a simple example of how FieldColumn is used? I'm quite sure I'm missing a very serious step here, but have been unable to figure out how to trigger the update method. Any help at all would be appreciated. I've tried the following, the request values show on screen but fail to

Re: [Zope3-Users] zc.table FieldColumn question

2006-11-17 Thread ksmith93940-dev
Ok, so the following works, but if someone with more knowledge could comment on this I'd appreciate it. class MovieColumnSubmit(fieldcolumn.SubmitColumn): def getId(self, item, formatter): return fieldcolumn.toSafe(item.__name__) def update(self, items, data, formatter):

[Zope3-Users] Extent catalog question

2007-01-11 Thread ksmith93940-dev
In my experience (zope2), large full textindexes require more and more cpu time for every new object added to the point where it takes several minutes for each new article uploaded! To avoid this problem, I was hoping to break the index into smaller pieces by using extent catalogs to filter

Re: [Zope3-Users] Extent catalog question

2007-01-11 Thread ksmith93940-dev
Nice call. Registering as ICatalog (instead of IExtentCatalog) works perfectly. Thanks! Kevin Smith Gary Poster [EMAIL PROTECTED] wrote: On Jan 11, 2007, at 1:42 PM, [EMAIL PROTECTED] wrote: In my experience (zope2), large full textindexes require more and more cpu time for every new

[Zope3-Users] Problems reindexing on ObjectModifiedEvent

2007-01-18 Thread ksmith93940-dev
Hi list, For some reason, everytime an object is modified, all of the catalog information for that object is lost. A full catalog reindex works. Do I need to subscribe the interfaces of the catalog indexes to the ObjectModfiedEvent or something? I appreciate any pointers. Thanks, Kevin Smith

Re: [Zope3-Users] Problems reindexing on ObjectModifiedEvent

2007-01-18 Thread ksmith93940-dev
I need to investigate this further now, but this problem so far seems to isolated to the ValueIndex. Also, when the ObjectModifiedEvent is replaced with an ObjectCreatedEvent, the object is properly indexed. ... --- [EMAIL PROTECTED] wrote: Hi list, For some reason, everytime an object is

Re: [Zope3-Users] Using formlib schema.Choice with zc.table FieldColumn

2007-01-25 Thread ksmith93940-dev
Whoa, really bad line breaks, here is the pastbin link http://zope3.pastebin.com/867518 David, zc.table makes rendering html tables more programmatic. --- [EMAIL PROTECTED] wrote: Thanks for the direction, Gary. :) Getting a Choice field working in doctests was quite a challenge. It