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