[Zope-dev] url traversal

2001-04-26 Thread Brett Carter
I have the classic problem of wanting my method 'foo' to work like: http://localhost/foo/a/b/c where a,b,c are parameters passed to foo. I've found some info in the mailing list archives, namely: http://lists.zope.org/pipermail/zope-dev/2000-May/005197.html Has the 'Traversal' interface been

[Zope-dev] Publishable Objects...

2001-04-26 Thread Brett Carter
What does it take to make an object publishable from an ExternalMethod? I.E., I have a class (see bottom of message) that does some url traversal trickery, that works from a python product. Shouldn't I be able to just stick it in an External method, and just return it, i.e.: def returnme(self):

[Zope-dev] dtml-in performance

2001-04-04 Thread Brett Carter
What can I do to maximize the peformance of a dtml-in statement? When iterating over a 2000 row database query, it takes about 20 seconds - time mostly spent doing security checks, and calling __getitem__ in DT_InSV.py. Is the performance of dtml-in just slow? -Brett

Re: [Zope-dev] dtml-in: next-batches

2001-03-07 Thread Brett Carter
I tried accessing keys off the 'data' object, and I just get an 'unathorized' error. -Brett "Dieter" == Dieter Maurer [EMAIL PROTECTED] writes: Dieter Brett Carter writes: I'm running Zope 2.2.2, and I'm trying to use the batching stuff for the dtml-in tag, however, I

[Zope-dev] dtml-in: next-batches

2001-03-07 Thread Brett Carter
Does anybody have an example of how to use the supposed next-batches mapping returned by dtml-in? I'm trying to build a google-like pageing feature into my application, so we just show the first 5 results, then have a link to each next page, ie "1,2,3,4..." Thanks, -Brett

Re: [Zope-dev] dtml-in: next-batches

2001-03-02 Thread Brett Carter
I've also discovered that setting overlap = 0 actually causes everything to overlap by 1. I didn't see anything in the collector about this either... -Brett "Brett" == Brett Carter [EMAIL PROTECTED] writes: Brett I'm running Zope 2.2.2, and I'm trying to use the batc

[Zope-dev] dtml-in: next-batches

2001-03-01 Thread Brett Carter
I'm running Zope 2.2.2, and I'm trying to use the batching stuff for the dtml-in tag, however, I can't seem to access any attributes off the 'next-batches' or 'previous-batches' mapping object that's supposed to be available, with the attributes 'batch-start-index', 'batch-end-index', and

Re: [Zope-dev] What's 'section' in blocks[0] in block dtml tag?

2001-01-02 Thread Brett Carter
Lee, I've been diddling around with the same stuff. It took me a lot of introspection with printing of errors via MrCreosote/Spew. To answer your question, 'section' is an object which contains an attribute 'blocks'. If you want to render the dtml in there, you can run the 'render_blocks'

Re: [Zope-dev] objectValues performance

2000-11-28 Thread Brett Carter
Ok, I'll bite. Why doesn't the standard folder scale? Seems like a design flaw to me - why doesn't the default folder use catalogs or BTrees? -Brett "Casey" == Casey Duncan [EMAIL PROTECTED] writes: Casey Brett Carter wrote: I have a folder with greater than 5000 ZClass

Re: [Zope-dev] objectValues performance

2000-11-28 Thread Brett Carter
"Michel" == Michel Pelletier [EMAIL PROTECTED] writes: Michel Because massive scale is not a requirment of folders, they Michel are meant to organize content for humans, not to be Michel large-collection containers. A folder with 5000 elements Michel is not very useful to a

[Zope-dev] ZCatalog uniqueValuesFor() cached?

2000-10-03 Thread Brett Carter
How can I update the uniqueValuesFor()? Whenever I delete one of my ZCatalog-aware zclasses, they are still returned in uniqueValuesFor. What gives? is this cached or something? -Brett ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Custom dtml tag

2000-09-13 Thread Brett Carter
certainly doesnt seem to on a standard DTMLDocument / Method. Andy - Original Message - Andy From: "Brett Carter" [EMAIL PROTECTED] Andy To: "Andy McKay" [EMAIL PROTECTED] Andy Cc: [EMAIL PROTECTED] Andy Sent: Tuesday, September 12, 2000 4:17 PM Andy

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Brett Carter
"Andy" == Andy McKay [EMAIL PROTECTED] writes: Andy - see the thread I started called 'Acqusition in a DTML tag' I have a similar question. -Brett Andy Hmm well ive found i have TemplateDict object and of Andy course my self. Perhaps there is a pythonism I have to Andy research

Re: [Zope-dev] Acquisition in a DTML Tag

2000-09-12 Thread Brett Carter
"Shane" == Shane Hathaway [EMAIL PROTECTED] writes: Shane Brett Carter wrote: "Brett" == Brett Carter [EMAIL PROTECTED] writes: Brett I've defined my own dtml tag (i.e. dtml-foo/dtml-foo) Brett and I am trying to look up an object depending on the

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Brett Carter
Andy: here's what I've gleaned - in a dtml tag's render() method, you get passed in self and a template dict, in my example let's call it 'md'. md is essentially a stack/dictionaryish object of the *current* namespace - and one of the handy things that's always around in the namespace is the

Re: [Zope-dev] Acquisition in a DTML Tag

2000-09-06 Thread Brett Carter
"Brett" == Brett Carter [EMAIL PROTECTED] writes: Brett I've defined my own dtml tag (i.e. dtml-foo/dtml-foo) Brett and I am trying to look up an object depending on the Brett arguments passed to my tag. The python class that defines Brett the tag inh