[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] 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 imp

[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 __

[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-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 t

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 Zop

[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 'batch-s

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' metho

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 usef

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:

[Zope-dev] objectValues performance

2000-11-27 Thread Brett Carter
I have a folder with greater than 5000 ZClass instances in it. It takes > 5mins to do an objectValues for every object in the folder - is there a higher perfomance call I could make? -Brett ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.

[Zope-dev] geting relative url in a dtml tag

2000-10-23 Thread Brett Carter
I've defined my own dtml tag, i.e. . I want to get the relative path of the 'calling' object for that tag, in 's __init__ method. I.E. if i have a dtml-method 'index_html': When I edit the 'index_html' method, 's __init__ method gets called, and I want to get something like '/zope/index_html'

[Zope-dev] Folderish object not in management tree

2000-10-18 Thread Brett Carter
I've created a folderish object via a python product. I've just recently upgraded to zope 2.2.2. When clicking on the link to any instances of my object in the management interface (but in the *tree* part of the management interface only) the url is wrong, it points to: http://localhost/zope/zope

[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] http://lists.zope.org/

Re: [Zope-dev] Custom dtml tag

2000-09-13 Thread Brett Carter
If that would work that would be great - but a it Andy> certainly doesnt seem to on a standard DTMLDocument / Method. Andy> - Original Message - Andy> From: "Brett Carter" <[EMAIL PROTECTED]> Andy> To: "Andy McKay" <[EMAIL PROTECTED]

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 'thi

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 t

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 object and of Andy> course my self. Perhaps there is a pythonism I have to Andy> research here.

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. ) Brett> and I am trying to look up an object depending on the Brett> arguments passed to my tag. The python class that defines Bret

[Zope-dev] Acquisition in a DTML Tag

2000-09-06 Thread Brett Carter
I've defined my own dtml tag (i.e. ) and I am trying to look up an object depending on the arguments passed to my tag. The python class that defines the tag inherits from Acquisition.Implicit, but 'self' doesn't contain any of the Acquisition hiarchy. It seems like this must be possible, since t

[Zope-dev] Installing Tracker

2000-06-26 Thread Brett Carter
I was trying to install the Tracker product on Zope 2.1.6/Debian Linux. I've gotten the TrackerBase product to install, however, when I go to the control_panel/Products, and try to import Tracker.zexp I get the following error: Error type: ImportError Error value: No module named AbstractClasses