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
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
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
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
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
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
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
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')
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
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 =
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
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
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,
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
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/
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
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
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):
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
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
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
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
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
23 matches
Mail list logo