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):
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
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
__
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
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
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
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
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
> "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
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 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.
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'
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
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/
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]
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
>>>>> "Shane" == Shane Hathaway <[EMAIL PROTECTED]> writes:
Shane> Brett Carter wrote:
>> >>>>> "Brett" == Brett Carter <[EMAIL PROTECTED]> writes:
>>
Brett> I've defined my own dtml t
> "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.
>>>>> "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
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
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
21 matches
Mail list logo