Tres Seaver wrote:
Chris Withers [EMAIL PROTECTED] asked:
Does anyone know what happened to it and how far its implementation got?
The preliminary implementaion, DefaultObservabale, landed as a mix-in
class
in Zope 2.2:
$ZOPE_HOME/lib/python/OFS/DefaultObservable.py
Mix it in
Michael Bernstein wrote:
After some more thought, I realized that this really needs
to be a three-way gateway betrween a mailing list, a 'blog,
and a newsgroup.
I'm all up for doing the mailing list/weblog type bits but I have no
idea how news _works_ and how it could be integrated into the
Okay, apologies in advance for picking up a thread that's been dorman
for so long ;-)
Jim Fulton wrote:
Chris Withers wrote:
self.id = id
self.title = 'Title!'
self.anInt = 0
self.aString = 'testing'
None of the
values above can have a __roles__
On Fri, 10 Nov 2000, Chris Withers wrote:
Tres Seaver wrote:
Chris Withers [EMAIL PROTECTED] asked:
Does anyone know what happened to it and how far its
implementation got?
The preliminary implementaion, DefaultObservabale, landed as
a mix-in class in Zope 2.2:
Tres Seaver wrote:
The docs are in the interfaces wiki:
http://www.zope.org/Members/michel/Interfaces/ObserverAndNotification
(Note that this actually predates the fishbowl process -- this
has been in Zope for a lng time).
Actually at:
Chris Withers wrote:
Okay, apologies in advance for picking up a thread that's been dorman
for so long ;-)
Jim Fulton wrote:
Chris Withers wrote:
self.id = id
self.title = 'Title!'
self.anInt = 0
self.aString = 'testing'
None of the
I was just building in some error handling into some UI code, and wanted to catch
errors relating to duplicate ids. The problem is that just about every client-side
error raises the same kind of Exception, a 'Bad Request'. A quick grep counted 41
different types of 'Bad Request' in my Zope
Oh if only!!!
I love this idea, and comments haev coem from DC along those same lines,
btu nothing ever really happened about it...
cheers,
Chris
seb bacon wrote:
I was just building in some error handling into some UI code, and wanted to catch
errors relating to duplicate ids. The
Itamar Shtull-Trauring wrote:
Shane Hathaway wrote:
Not long ago I created a wrapper around File objects which automatically
splits the file before it reached a predefined limit. It could handle
any number of partitioned file segements.
Yes please! Perhaps it could be integrated
snip good idea about exception hierarchies
Oh if only!!!
I love this idea, and comments haev coem from DC along those same lines,
btu nothing ever really happened about it...
If there are people willing to work on this, then a proposal
would be most welcome...
Thanks a lot for all the guidance on ZPatterns so far.
Our company is building a Customer Relationship Management system using ZOPE
and ZPatterns. We have a object model and basic Dataskins and Specialists in
place. At this point we thought it a good idea to share the object model
with the Zope
Hi.
Reading from Jims 'Introduction to the Zope Database':
"An object's state may be freed at any time by the ZODB to conserve memory
usage."
What does this mean? That the object can be freed even though there are
references to it?
The reason I'm asking is becase I want to use threads and
Hi Nigel,
Yes.. the example still works. I am working on an update that
incorporates some of the suggestions folks have made and better
illustrates some ZPatterns concepts. Basically the example is *too*
simple, and it doesn't separate PD, and UI issues very well..
-steve
"Nigel" ==
Erk... meant this for zope-dev :-S
Chris Withers wrote:
Hello...
Okay, I'm still staring up at the ZPatterns learning cliff as I write
this so forgive my ignorance.
I'm looking at ZPatterns WRT to 'dynamically generated dataskins'.
You what? Well, okay, I'll try and explain...
Jim Fulton wrote:
Strings; fine, at least they're secure, and when they become proper
objects in Python 2.0, the problem should go away?
Will Python 2.0 let you assign string attributes?
% python
Python 2.0 (#3, Oct 26 2000, 15:07:09)
[GCC 2.95.2 19991024 (release)] on sunos5
Type
On Fri, 10 Nov 2000, Chris Withers wrote:
Does this mean all of the classes in the diagram at that URL have been
implemented?
How come the Catalog doesn't use it so CatalogAware
(bleugh!) isn't needed anymore?
Heh, because we would have to make far-reaching changes
(essentially, add an
AFAIK, you should be able to spawn a new thread from within any function
within Zope and manipulate stuff in the ZODB as long as you lock properly.
The number of database connections is fixed, but arbitrary threads can take
up a database connection on an ad-hoc basis. If I were you, I'd mess
Re this error when adding a zwiki web:
Error Type: KeyError
Error Value: H?v`H?v$y_?-006412673360557
Content-Disposition: form-data; name="wiki_type" basic
Tony McDonald [EMAIL PROTECTED] writes:
It is a Mac actually. IE 5.0. I've just asked a colleague to try
If this is your exact code, it looks like you should be using
"sequence-item", instead of "sequence_item".
You should also be able to do it without the external method like this:
(100% untested)
dtml-in expr="_.string.split(acctUsersEmail)"
dtml-var name="sequence-item"
/dtml-in
"David W.
AFAIK, you should be able to spawn a new thread from within any
function
within Zope and manipulate stuff in the ZODB as long as you lock
properly.
I guess I wasn't clear enough, but my application isnt within zope, im
just using zodb and some more components out of it.
Specifically, an
But I guess this still will be the same anyway. That is, if an object
inhereted from Persistence.Persistance spawns a thread that
manipulated data in the object, I will have no problems. The thread
will be running just fine, and the data will be stored in the zodb.
This is how I've
I had posted about this previously, but no one has tackled this one,
it seems to be a pretty serious issue, plus I've done a *lot* of poking
around and learned a few things since I first reported it. What I have
*not* found (or been told) is that the below described behavior is normal.
First a
I cannot slice context.REQUEST.PARENTS
The reason I want to do this is to travel up the URL tree for a
breadcrumb navigation do-hicky.
I want to slice it so I can make a copy because if I just do
...reverse() on it, I screw up everything afterwards.
It says I'm unauthorized (Guarded.py
Hi all,
Say I've got a form with this in it
select type="checkbox" name="options:list"
option value="1"number 1
option value="2"number 2
option value="3"number 3
/select
When this is put into an SQL database, the field 'options' is this (string)
['1', '2', '3'] or ['2', '3'] etc.
When I get
On Thu, 9 Nov 2000, The Doctor What wrote:
I'm curious, you posted a message about SiteAccess. I have the same
problem, with Debian (Zope 2.2.2 and I've tried SiteAccess 2.0.0b3
and b4).
for some reason, the debian SiteAccess package didn't contains some
files of the original SiteAccess tar
Hi zopers,
Is there a syntax to login a user in
python?
i use a python method to add a user to
the
acl_user folder. When this is done I want to log
in
the new user directly.
Is that possible?
TIA
Philipp Dunkel
Shane Hathaway wrote:
Here's my guess: you have a complex XML document. As you explore the
document, Zope is setting a cookie that reflects the list of branches
you have opened. After opening a large number of branches, you reach
the limit on the size of a cookie (somewhere in the range
Tony McDonald wrote:
When this is put into an SQL database, the field 'options' is this (string)
['1', '2', '3'] or ['2', '3'] etc.
So you're storing the sequence as a string of the type shown above...
...ow ;-)
Might be best to change your SQL Schema so your store one row per
option...
For those who care: I have created a bulk mailing How-To at
http://www.zope.org/Members/shh/BulkMailHack/
Cheers,
Stefan
--
Things work better when plugged in
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**
don't know about inside zope, but in plain python you could just do:
new_options = list(options)
perhaps an external method would cut it:
return list(inputstring)
--
Geir Bækholt
web-developer/designer
[EMAIL PROTECTED]
http://www.funcom.com
on Friday, November 10, 2000 Tony McDonald
On Fri, 10 Nov 2000, Bak @ kedai wrote:
also, will iterating through catalog index faster than iterating through
..say.. objectItems('meta-type')?
Much faster. Much, much faster. I tried an objectValues() on 2000 items
(in 3 different folder-type objects) and did various calculations on
tone,
How about (untested):
where 'dboptions' is the string pulled from the DB, and 'options' is the
list needed.
dtml-call "REQUEST.set('options',[])"
dtml-in "_.string.split(dboptions[1:-1],',')"
dtml-call "options.append(_.int(_['sequence-item']))"
/dtml-in
This would then give you take
On 10 Nov 2000 [EMAIL PROTECTED] wrote:
But I'm unable to set the Title property of a File object.
Is it just the title property? All the others you can fiddle around with?
Try manage_changeProperties() instead. I know (from
lib/python/OFS/Image.py) that the File object has its own
On 10/11/00 10:52 am, "Phil Harris" [EMAIL PROTECTED] wrote:
tone,
How about (untested):
where 'dboptions' is the string pulled from the DB, and 'options' is the
list needed.
dtml-call "REQUEST.set('options',[])"
dtml-in "_.string.split(dboptions[1:-1],',')"
dtml-call
These aren't really hosting related so I'm moving this to the
[EMAIL PROTECTED] list...
Thiebaut CHAMPENIER wrote:
The official home page for this module is
http://starship.python.net/~lemburg/mxDateTime.html (not responding rigth
now)
IIRC, starship is down 'cos the Python team are moving
Hi all
I am strugging with accessing acl_users
from DTML, and maybe someone here can
tell me what I'm doing wrong.
I am trying to make a page where users
can change their own passwords.
I have a DTML document with "Manager"
proxy role. It is a form that lets the user
enter "password" and
On Fri, 10 Nov 2000, Chris Withers wrote:
mxDateTime is _not_ the DateTime in Zope. If only it was
It's voting season, so I vote +10 for this one.
bye,
Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Fac de Medecine de Nicehttp://wwwmed.unice.fr
Tel: (+33) 4 93
Chris McDonough wrote:
I'm going to take a guess. It would appear AFAICT that the ZDiscussions
product installed an object which it hung off the root object (the
application object) when it was first imported.
Don't rememebr seeing anything like this in ZDiscussions when I was
looking
You will still see random key errors until Chris Petrilli puts his ZCatalog
fixes into the 2.2 branch (hopefully 2.2.3).
- Original Message -
From: "Bak @ kedai" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 09, 2000 11:56 PM
Subject: [Zope] ZCatalog and random key
Maybe it's a Zope-level rather than ZODB level problem? Maybe some of
the ZClass machinery or product registration machinery is screwing
things up?
This is possible. Maybe even likely.
Given that people have reported this from more than one product now, I'd
be inclined to think it's not
On Fri, 10 Nov 2000, Chris Withers wrote:
Chris McDonough wrote:
I'm going to take a guess. It would appear AFAICT that the ZDiscussions
product installed an object which it hung off the root object (the
application object) when it was first imported.
Don't rememebr seeing
FWIW, I can also report this problem with ZDiscussions. In my case it
stemmed from not properly deleting the ZDiscussion product before moving
my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing
unable to create ZSQL Methods (!) because of a missing
Chris Withers wrote:
Shane Hathaway wrote:
Here's my guess: you have a complex XML document. As you explore the
document, Zope is setting a cookie that reflects the list of branches
you have opened. After opening a large number of branches, you reach
the limit on the size of a
Hi Zopers,
I have a processing script that takes emails and puts them into a table.
I bring up a table for confirmation and then submit the whole thing by a
iterative item:records zsql method.
My problem is that the table requires a unique primary key and quite
regularly there duplicates. So
I checked my website www.goeldi.com with a SuSE Linux 7 client (Netscape)
and discovered, that not all DTML is done right.
My index_html file has:
dtml-var standard_html_header
Welcome to our website.
dtml-var actual
dtml-var standard_html_footer
The header and footer are displayed
Chris McDonough wrote:
FWIW, I can also report this problem with ZDiscussions. In my case it
stemmed from not properly deleting the ZDiscussion product before moving
my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing
unable to create ZSQL Methods (!) because of a
On Fri, 10 Nov 2000, Chris McDonough wrote:
FWIW, I can also report this problem with ZDiscussions. In my case it
stemmed from not properly deleting the ZDiscussion product before moving
my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing
unable to create ZSQL Methods
Shane Hathaway wrote:
The answer to these questions and more can be found at dev.zope.org.
The fishbowl keeps better track of projects than any human.
The tempation to say "and the fishbowl confuses more humans than any
project can keep track of" was to great ;-)
It's not actually true, I
The answer to these questions and more can be found at dev.zope.org.
The fishbowl keeps better track of projects than any human.
The tempation to say "and the fishbowl confuses more humans than any
project can keep track of" was to great ;-)
It's not actually true, I guess, except for
Hello All,
I do read HOW-TO's, User-Guides, etc., but I think DTML
must be made simpler, or better documentation, or more examples.
As an example, within an dtml-in loop:
1. You can print the values of sequence-items with:
(index=dtml-var sequence-index,
number=dtml-var
My take is that it's a client issue.
Since you explicity mention that your using a Linux client, I'd assume
you've tried a windows client? If so was it Ie/Netscape/Opera etc.
IE and Netscape in particular play by their own rules and render things
differently. Maybe your html is causing one of
I'm create a CSV file that I would like browsers to get the "save as"
dialog when they select it.
I'm using RESPONSE.write() to write out the CSV file, and I set the
Content-Type before calling RESPONSE.write
Netscape seems to work ok, it pops up a save box for "text/csv" and
Hi Jason,
I've been working with Flash some lately as well.. with an eye
toward useful vector graphics for Zope. There is a library called ming
(http://www.opaque.net/ming) with a (SWIG'ed) python extension that
I've been slowing working through, adding wrapping fuctions and
getting to the
Sorry, in fact this was a 'cache-problem'. I always have to hit the 'reload'
button to get the right content. In Windows the old content was shown, in
Linux the actual (because I did not browse before on this page).
In the management screens too I always must hit reload after a change of the
Hello...
Okay, I'm still staring up at the ZPatterns learning cliff as I write
this so forgive my ignorance.
I'm looking at ZPatterns WRT to 'dynamically generated dataskins'.
You what? Well, okay, I'll try and explain...
Firstly, I'm assuming that DataSkins (or their subclasses?) are
I'm create a CSV file that I would like browsers to get the "save as"
dialog when they select it.
I'm using RESPONSE.write() to write out the CSV file, and I set the
Content-Type before calling RESPONSE.write
Netscape seems to work ok, it pops up a save box for "text/csv" and
I have a processing script that takes emails and puts them into a table.
I bring up a table for confirmation and then submit the whole thing by a
iterative item:records zsql method.
My problem is that the table requires a unique primary key and quite
regularly there duplicates. So ofcourse
Thanks for the informative thread. FWIW, I see this problem too. It's
preventing me from importing various PTK Membership .zexp's.
-Simon
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML
It's a give-and-take I think.
I had the same confusion as you have right now, but after a while you learn
this syntax pretty well.
This is the same as with all syntax, and as soon as you have learned the
basics the rest is easy and from then on a matter of learning how to use
extensive functions
Irene Barg [EMAIL PROTECTED] writes:
1. You can print the values of sequence-items with:
(index=dtml-var sequence-index,
number=dtml-var sequence-number,
item=dtml-var sequence-item)
2. To test for equality, this does not:
dtml-if "sequence-index == 0"
* peter bengtson ([EMAIL PROTECTED]) [001110 10:40]:
It's a give-and-take I think.
I had the same confusion as you have right now, but after a while you learn
this syntax pretty well.
This is the same as with all syntax, and as soon as you have learned the
basics the rest is easy and from
Thanks for that... Although Im not terribly sure what the magic behind the
sequence-start is, but it works very well.
Cheers,
--
Paz
Oratrix Development BV
http://www.oratrix.com
GRiNS SMIL Editor
-
Rik Hoekstra wrote:
I have a processing script that takes emails and puts them into a
It might be that fixing one or both of the above would reduce the DTML
pain factor quite a bit. Certainly, it's time to do whatever it takes
to banish these "-"-named variables, IMHO.
Agreed. But DC always raises objections when this is brought up.
Hi all,
Is there a NT guru in the house :-)
Zope 222
Sometimes Zserver goes Zombie, I login on the machine and I see a
DrWatson Window. I close DrWatson window and the process automagically
restarts, and everything ok.
Whenever this happens two logs are written in EventLogger:
-one is a
From inside what object should I inherit from to get a history option for
a zclass or what method would I need to write. I have looked at lots of
examples of zclasses and so far none of them have a history tab.
I am working with the STX_Document type and made a new zclass based on
that which
I know this sounds silly, but try making the url end with .csv
I wrote a perl cgi script some time ago that spit out a csv file. When it
ended with .csv, IE seemed to ignore the server's Content-type: text/html
header.
http://finance.yahoo.com/q?s=WCGd=v1
Look, my stock is falling! Actually,
It might be that fixing one or both of the above would reduce the DTML
pain factor quite a bit. Certainly, it's time to do whatever it takes
to banish these "-"-named variables, IMHO.
I agree, changing the "-" to "_" would remove a whole ton of posts on this
list and mean I could chop a
we'll be back after these messages.
~ethan
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
Hi.
We've got Zope 2.2.2 installed on a Linux box. We want to be able to use
the full-up python that's on the box instead of the python interpreter
that comes with Zope for playing with External Methods.
Is there any way to circumvent Zope's python in this way?
If not, what's the easiest way
I know this sounds silly, but try making the url end with .csv
I wrote a perl cgi script some time ago that spit out a csv file. When it
ended with .csv, IE seemed to ignore the server's Content-type: text/html
header.
http://finance.yahoo.com/q?s=WCGd=v1
Look, my stock is falling!
From: Andy McKay
It might be that fixing one or both of the above would reduce the DTML
pain factor quite a bit. Certainly, it's time to do whatever it takes
to banish these "-"-named variables, IMHO.
I agree, changing the "-" to "_" would remove a whole ton of posts on this
list and mean I
I'm trying to compare two page titles, using this code:
dtml-call "REQUEST.set('my_title',get_page_title)"
dtml-in "PARENTS[1].objectValues(['Folder'])"
dtml-my_title; : dtml-get_page_title
dtml-if "my_title!=get_page_title"
dtml-var title_or_id
/dtml-if
/dtml-in
Now I can see on
On Fri, 10 Nov 2000, Farrell, Troy wrote:
I know this sounds silly, but try making the url end with .csv
I wrote a perl cgi script some time ago that spit out a csv file. When it
ended with .csv, IE seemed to ignore the server's Content-type: text/html
header.
Not silly! I have also seen
On Fri, 10 Nov 2000, Gary Perez wrote:
We've got Zope 2.2.2 installed on a Linux box. We want to be able to use
the full-up python that's on the box instead of the python interpreter
that comes with Zope for playing with External Methods.
Is there any way to circumvent Zope's python in this
I telneted into the link I gave below and here is the RESPONSE:
HTTP/1.0 200 OK
Date: Fri, 10 Nov 2000 19:26:52 GMT
Cache-Control: private
Connection: close
Content-Type: application/octet-stream
Set-Cookie: B=48be9l0t0oivtb=2; expires=Thu, 15 Apr 2010 20:00:00 GMT;
path=/;
domain=.yahoo.com
Here's some DTML I use to generate a CSV file on the fly using data returned
from a query of a MySQL database:
dtml-call "RESPONSE.setHeader('Content-Type',
'application/x-csv')"dtml-in qryAllDB
dtml-if sequence-start
FirstName,MiddleName,LastName,Address,City,State,Zip,Phone,Fax,Email,URL,Bir
[Max M.]
| For once I will send a "me too" to the list. "sequence-item" is a simple and
| plain design error. Decapricate it and and let us use "sequence_item" etc.
| together with the other for a while and then drop the old form.
I'd like to join this mob. ;)
It's painful and ugly to use
Hello guys I' have here a pyton file that allows you to import your
bookmarks from IE.
The following prob is that it works on windows98 zope 2.2.2 and not on a
unix system.
The file temp.txt stays empty and you get the message 'unable to export
favourites'
anyone any idea?
def
First Simon, thanks for your message. Yours is one of the most articulate
explanations I've seen on this topic.
Simon Michael [EMAIL PROTECTED] writes:
Irene Barg [EMAIL PROTECTED] writes:
[examples of DMTL confusion...]
It is confusing. There are two systems of syntax in use here - DTML's
Hi, Aaron
Yes.
If your parent ZClass is constructed properly, you should be able to add
the parent class's management tabs by setting a "view". On the "Views"
tab, look in the Method list for
propertysheets/[ParentClassPropertySheetName]/manage. The properties on
that sheet are accessible just
Irene says:
I get so frustrated with DTML, I want to scream.
Please don't tell me to buy the Zope book,
DTML should be more intuitive.
DTML maybe the heart of Zope,
but it's also it's achilles heel.
You're right about the confusion, frustration, nor are you alone.
Still, DTML isn't
On Fri, Nov 10, 2000 at 10:28:44AM +, Chris Withers wrote:
Oh yeah, while I'm here, how's the HiperDOM project getting on? That
stuff would be raally useful for a project here...
HiperDom is usable right now; we've been quite quiet because
we're working on documentation and unit
Only seen a couple of posts on this and the suggested fixes did NOT work.
My ZClass was working fine until I added a new string type property and now
my date type property seems broken. At least broken when I attempt creating
an instance via my custom add form. If I add an instance via the
"Philipp Dunkel" [EMAIL PROTECTED] writes:
Hello guys I' have here a pyton file that allows you to import your
bookmarks from IE.
The following prob is that it works on windows98 zope 2.2.2 and not on a
unix system.
The file temp.txt stays empty and you get the message 'unable to export
Thanks!
I have a new question that may (?) be the same old one in a different
form:
The idea is to have two ZClasses, say Foo and Bar. Bar is a nested class
of Foo. The Foo object should be able create n instances of the Bar
objects and the Bar object should also be able to create n instances
Charlie Wilkinson [EMAIL PROTECTED] writes:
...or "the python world with some Zope limitations placed on it."
...
There's a third world of course, HTML. Most of us probably have that
True, true. Actually this sounds like a good structure for a overview
doc:
"Welcome to Zope.. in which we
Howdy Folks,
I'm looking for man pages on these dtml functions?
I'm finding it terribly difficult and frustration to figure out how to
properly program in dtml since I can't do a man on a funtion
(ie:man objectValues) and read about what parameters the function is
expection from me.
I'd
[EMAIL PROTECTED] wrote:
Howdy Folks,
I'm looking for man pages on these dtml functions?
I'm finding it terribly difficult and frustration to figure out how to
properly program in dtml since I can't do a man on a funtion
(ie:man objectValues) and read about what parameters the function
John,
Have you tried http://zdp.zope.org , in particular the Zope Quick Reference.
Every Zope user/developer should use it as their bible.
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 11, 2000 12:11 AM
Subject:
Well, I tried the source hacking approach and seem to have found
success with relatively little pain.
In ZServer/medusa/http_server.py, the "log" method of the class
"http_request" can be modified to report the request hostname which
is readily available via the get_header method in the same
90 matches
Mail list logo