spam/spam/foo/" -- regardless of whether foo is of Folder type,
ObjectManager type or DTML method type, or whatever.
Are there any downsides to having this behaviour for all objects/all
URLs?
Or perhaps there could be some kind of per-path switch inside Zope tha
ts/CDcollection/ZCDcollection/ZCDinformation does not?
>
> Can any one explain this?
In the latter case, you don't get a choice as to whether ZCDinformation
is an allowed subobject.
Try instantiating a ZCDcollection. You'll find that you can instantiate
ZCDinformation objects inside i
ass.
Your metadata ZClass should derive fom CatalogAware.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
Sin Hang Kin wrote:
>
> Hi,
>
> Is it possible to detect the top folder in dtml?
>
> I means I would like to prevent squishdot to show the ../ when it is already
> in the top level.
We're at the root folder
You can go up from here
--
Steve Alexander
Softwar
res was far
better when there is quite a lot of writing as well as reading.
If this is true, the Postgres should be a better choice for a
session-data DBMS.
Of course, the *right* way to find out is to run a benchmark :-)
--
Steve Alexander
Software Engineer
Cat-Box limited
__
of threads to
simultaneously download the images on a page. It could be that Netscape
is tying up the single thread, and getting impatient with its other
requests.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope maillist - [EMAIL PROTECTE
er than hard-coding
an application in Python.
For the kind of applications I have, I'm happy to throw a bit more
hardware at a server, if I get an improvement in reuse,
understandability or maintainability.
Maintenance accounts for much more than half the cost of most projects.
--
Steve A
rg/Members/Zen/howto/FormVariableTypes
Coerce your form fields into the types you require by using magic
incantations of the form variablename:type.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope maillist - [EMAIL PROTECTED]
http://l
ot;bIgFolDer" direct to "Bigfolder" for
example.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related
ft Access.
Here's a reference that dropped from Google when I asked "corruption
concurrent microsoft access database"
http://dgl.com/dglinfo/1998/dg980825.html (half way down page)
I wouldn't use Access with Zope.
--
Steve Alexander
Soft
see coming out of this is this:
At present, I can consult at a client who is running Zope, and I'm
reasonably confident that I can read and understand all their code.
When people can write their site half in Perl, I could well be stuck...
unless I learn Perl :-)
--
Steve Alexander
Softw
e code maintainance problems down the line. Projects of this kind
that get into difficulty may find a shortage of able rescuers :-)
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.o
Andrew Kenneth Milton wrote:
>
>
> If the phantom 'perl userbase' could 'hack into the core' and put perl
> in there, why would they wait for perl methods to become available first?
>
> They would have implemented PerlZope long before this.
http:
silly idea:
Could you pickle and Base64 encode the data you want to pass, and then
shove it in a single hidden control?
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/z
Paul Everitt wrote:
>
> I propose an IRC chat on Wednesday with Jim Fulton and me.
Try and pick a time that's not *too* late at night for us Europeans.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope maillist - [EMAI
art of a multi-part MIME message. You'd be able to
upload new objects by writing them as emails.
I reckon this is quite feasible, and possibly even useful :-)
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope maillist - [EMAIL PROTECTED]
htt
w the mail archives are available in various formats already, but I
want a way to read some mailing lists occasionally, that doesn't intrude
on my inbox.
--
Steve Alexander
Software Engineer
Cat-Box limited
___
Zope maillist - [EMAIL PROTE
http://www.zope.org/Documentation/How-To/ZCatalogTutorial
http://www.zope.org/Members/mukhsein/job_board_howto
http://www.zope.org/Members/AlexR/CatalogAware
Also, see what you can find on the Zope Documentation Project pages:
http://zdp.zope.o
find them. Thus, no part of your data is entrusted to the client.
I'd suggest you look at the FSSession product:
http://www.zope.org/Members/gaaros/FSSession
Or perhaps HappySession:
http://www.zope.org/Members/hungjunglu/Products/HappySession
--
Steve Ale
Wikis/zope-xml/XPath%20in%20Zope
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
upload 900 files in one shot ?
What kind of files are they? What do you want to do with them once
they're in Zope?
Is uploading these files a recurring need you have, or is it a one-off?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
m, as
> a website.
You should be able to simply FTP these files into Zope. Have you tried
this?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listin
Jonathan,
Jonathan Desp wrote:
> How I can shut down zope without clicking on the shutdown button ?
> because I'm not able to see the page.
You can run the "stop" script that is in the directory you installed
zope into.
In your case it will be:
/home/jonano/Zope-2.1
r-%09d' % id
The advantage of this approach is that there is very little contention
in most cases.
> Is that zodb automatically serial all transaction?
For the purposes of generating ids, yes.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
_
updating of several dozen DTML documents.
Hi David,
I just posted something similar to Zope-Dev:
http://lists.zope.org/pipermail/zope-dev/2000-July/005744.html
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillis
t (not to mention
> "re.compile()") could be put outside of the method definition, considering
> that Zope's external methods grab on to individual methods within a Python
> module.
Think about the way Python loads in functions and classes: the file gets
read into the interpr
r tag ".
Is the old syntax equivalent to ?
If so, it isn't documented in the current DTML Reference, and my regular
expression should be changed to accommodate it.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zo
ide caching, move the useful content of a site "forwards"
towards its entrance, avoid banner adverts...
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/
You can put your linefeeds inside the HTML and DTML elements:
This is a really long heading with a dtml variable in it
See http://www.cat-box.net/helen/notes.html#source_layout_notes for more
information about these issues.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat
ng bugs. The fixed version is available in CVS and
in Zope 2.2.x.
There was also a copy of it on Shane's page at www.zope.org, but it is
gone now.
If you get stuck, mail me privately and I'll send you the fixed version.
You're better off getting it from a copy of Zope 2.2, if you
x27;
You could use ``code`` instead, though.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Rel
ulty data.
You must get your hardware checked, or else this problem will most
likely occur again.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zop
ile will not be read until the document
template is used the first time.
"""
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**
ttp://zope.nipltd.com/public/lists/zope-archive.nsf/
I searched just now for "request and frames", and there were a number of
helpful-looking results.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope mai
>
> I know the with doesn't work for the dictionary, but would like
> to do something similar to this example.
>
>
>
>****
>
> thanks in advance,
>
> Adam
--
Steve A
escription
> like at my past site www.atoma.f2s.com if you try the search engine you'll
> see good description which is a must.
>
> So do you know a way or the script or ? you'll be very useful if you know
> how.
Read the ZCatalog Tutorial and the Advanced ZCatalog Tutorial.
nts as a bug, if anyone is passing the Collector in the near
future.
Now, we might want to consider a product naming registry to address the
problem of product names that clash...
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
_
Steve Alexander wrote:
>
> Andrew Kenneth Milton wrote:
> >
> > Is there a Product Builders meta-type registry somewhere?
> >
> > I can see things getting messed up in the near future as the number of
> > products proliferates and meta-types start to cl
Andrew Kenneth Milton wrote:
>
> +[ Steve Alexander ]-
> | Andrew Kenneth Milton wrote:
> | >
> | > Is there a Product Builders meta-type registry somewhere?
> | >
> | > I can see things getting messed up in
and batch
> upload to database.
This sounds like a job for ZPatterns:
http://www.zope.org/Members/pje/ZPatterns
Most people find ZPatterns a bit difficult to get started with. It is
also alpha-release software, so *caveat emptor*.
Read the ZPatterns wiki too.
http://www.zope.org/
t the result to the list after a period of
time.
But then, perhaps people like seeing how popular the proposal is, in
real time :-)
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http
method.
Can you do this with the following in DTML?
...stuff...
Not tested, but it looks right to me.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
On 2 July, 2000 Steve Alexander wrote:
>
> If you just want ids that are unique to a folder, try the following
> algorithm (taken originally from the Discussion object code in the PTK).
> The variable "self" is the one passed to the constructor method of a
> par
Tim Cook wrote:
> Other than iterating through the property is there a way to
> display or present the lines property for edit without the
> containing ['brackets', '&', 'ticks']?
Something like this:
')">
or this:
--
Steve Al
bjects catalog-aware, set
the catalog's indexes as appropriate to your multiple conditions, and
use the catalog to do your query and your counting and batching of
results.
It ought to be much faster too.
--
Steve Alexander
Software Engineer
Cat-Box limited
htt
I don't think it is just Renderable ZClasses.
Can you paste ZClass instances at all in Zope 2.2.0?
See my message in Zope-Dev:
http://lists.zope.org/pipermail/zope-dev/2000-July/006238.html
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-bo
sher/Client.py from this:
h.connect((self.host, self.port))
to this:
h.connect(self.host, self.port)
I believe this is already fixed in Zope CVS.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist -
Chris McDonough wrote:
>
> > Please make comments by Wednesday April 16.
> >
> > Jim
>
> Plenty of time... :-)
Especially considering that the next Wednesday April 16 is in 2003.
--
Steve Alexander
Software Engineer
Cat-Box lim
this in dtml is hard
> cause of safety restrictions, in python its pretty slack though. here is
> a web python method that does the list work.
>
> name: combine
> args l1, l2
> return map( (lambda x,y:(x,y)), l1, l2)
>
> and
ex_html method?
http://www.zope.org/Members/lalo/Renderable-ZClass
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts
y':'Mai',
'June':'Juni',
'July':'Juli',
'August':'Augustus',
'September':'September',
'October':'Oktober',
'November':'November',
'Decembe
27;:'September',
'October':'Oktober',
'November':'November',
'December':'Dezember'
}
replace_regexes=[]
for e,d in replacements.items():
replace_regexes.append(
eval("lambda x: re.compile('%s').sub(
Ok... this is the last time.
You can put a line:
del replacements
just after the for loop, and save a tiny amount of memory.
This might be a useful optimisation if you're dealing with a very large
list of words to replace.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://ww
#x27;,
'May':'Mai',
'June':'Juni',
'July':'Juli',
'August':'Augustus',
'September':'September',
'October':'Oktober',
'November':'Nov
ance. Let's call it "D_date". (You can call it anything
you want, so long as it is a valid zope id.)
Fill in "D_date" (without the quotes) as both the python module name,
and the function name.
See also here:
http://www.zope.org/Documentation/How-To/ExternalMethods
--
maintaining an object-cache accelerated Web server.
There's also http://anemone.electricc.com/ for real-time reporting.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zop
mpatibility with INSTANCE_HOME installations.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encodin
ograms that rely on some ids
being methods, so the odd cases won't be changed for a while yet.
The general answer is to use a special function that calls the value if
it is callable.
You have a choice here. These are equivalent.
--
Steve Alexand
te catalogs. CatalogTrigger is from Itamar
Shtull-Trauring's ZPAddons package. (There will be a new version of
this, renamed DataSkin addons released this weekend.)
You could also modify CatalogAwareness.py to make an object aware of
several catalogs at once.
-
ox object as
albums, and subobjects of those as tracks.
Then, only a small amount of data gets rewritten on each transaction.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http
ethan mindlace fremen wrote:
>
> Short term, we will soon have a mirror of zope.org, which should reduce
> the possibility of slowdown.
What kind of mirroring?
Something static, or something clever using ZEO?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.ca
ification_time().toZone('GMT+2')
> 2000/09/02 12:49:48.326 GMT+2
>
> bobobase_modification_time fmt="%Y-%m-%d %H:%M"
>2000-09-02 12:49
>
> ---
What version of Zope are you using?
Various timezone bugs
..
>
> Can anyone shed any light on this?
I get an error when I try to add a DTML Method with REQUEST anywhere in
the id.
Actually, the method gets added, but I cannot edit it.
I haven't found out why yet.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.ne
edTraverse('slash/delimited/path')
If you have a slash at the start, the traversal starts from the Zope
root object. Otherwise, it is relative.
You can also use a sequence to represent your path. The slash at the
start is represented by an empty string at the beginning of your sequence.
See
Chris Withers wrote:
>
> Steve Alexander wrote:
> > You can use restrictedTraverse('slash/delimited/path')
>
> AFAIK, that's not available in DTML...
>
> Am I wrong?
You're wrong.
unrestrictedTraverse is not available from DTML though, for fairly
o
ould
try to conform to SGML where possible.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Relate
> Document Template Parse Error
> Invalid attribute name, "absolute_url", for tag "restrictedTraverse(choice)" absolute_url> ...
Yeah. That's right. There is no attrubute absolute_url.
There is, however, a method absolute_url().
This should do what you
rror_message is itself causing an error of some kind.
Therefore, you're getting the zope hard-coded error message.
Try commenting out most of your standard_error_message, so that there is
no possible way it could cause an error, then see if you see your
version or the Zope hardcoded vers
list
of values. Then, also set up a field index on your key, and a keyword
index for your values. Write an external method that puts your keys and
values into the ZCatalog. You won't be storing these anywhere else in
the ZODB; they will exist only as data within the catalog. You'll acc
web,
and return a 404 to those that don't match.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
teps[-1] to see if it equals the current object's id.
If you want this to be fairly transparent, perhaps based on a particular
permission or property, then I think you'll need to patch part of Zope,
probably HTTPRequest.py.
--
Steve Alexander
Software Engineer
Cat-Box limited
http:/
n field, instead of my (customized one). Whassup?
In the latter case, does Anonymous have rights to view your
standard_error_message?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL PROTECTED]
htt
Danny William Adair wrote:
>
> Unfortunately, yes he does.
Time to step through your site in the debugger then. Or, instrument
HTTPRequest.py and HTTPResponse.py to see what is getting called when.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-b
methods and fields are both attributes.) You can use the magic
aq_* attributes of acquisition wrappers to walk through the objects that
get considered during acquisition. You might also want to look at Shane
Hathaway's Acquisition Explainer, an external method t
l does not support this operation '
I can't reproduce this in Zope 2.2.2, linux.
Can you describe a simple case that has the problem?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope maillist - [EMAIL
e right. You use a SheetProvider to link a WebDav
propertysheet (that is attached to a Dataskin object) to some external
data source.
> Anyhoo, this is how I unerstand it.
>
> But I must add that I have never used zPatterns, This is all from how I
> understand the documentation, t
Steve Alexander wrote:
>
> You've described the Model-View relationship.
> The Controller part is where ZPatterns gets interesting; you can use
> SkinScript to do a load of validation on your data, all in one place, in
> a fairly specific and declarative language, w
77 matches
Mail list logo