Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Jonas Juselius

Cheers!

I actually tried to implement support for local roles in almost exactly the 
same way as you did, but for some reason I didn't get it to work. 
Perhaps I should look into the matter again... I just threw in the 
user_names(), and getUserNames() into the LoginManager, added some dtml to
handle SQL and... it didn't work, so I dropped it... ;-) I'll try to come up
with some nice way to handle local roles in a proper way in the LoginManager,
and hope that I get my patches accepted :-)

Do you have any clue about the ownership bug in the LoginManager? I find it
quite strange that an unowned object becomes owned whenever Zope is restarted
(or when a method is added...). I suspect that the problem is within the
ZPatterns modules, since it handles the persistance of the LoginManager...
This is how the LoginManager is inited and ownership is set:

ob=LoginManager()
ob._owner=UnownableOwner
self._setObject('acl_users', ob)

I tried to make _owner a global attribute of the LoginManager, but that didn't
solve the problem. I have also written Ty Sarna, but I have not received any
response yet.

One more thing... I'm new to PythonMethods, and I would like to know how to
get access to the self attirbute (or the DTML namespace if you like) from
PythonMethods. I would like to use PythonMethods more, beacuse dtml quickly
becomes unreadable and ugly, and Python is always beautiful :-) 

Have a nice day,
 .jonas.

On Thu, Oct 05, 2000 at 08:11:45AM -0700, Michael Bernstein wrote:
 Jonas Juselius wrote:
 
  Another thing which I have tried to do, is to add  support for local roles to
  the LoginManager. At first it looked rather simple, but then I realized that
  it wasn't really _that_ simple, and dropped it because I don't have time... It
  would however be nice to have local roles support in the LoginManager, as it
  would make it more complete.
  
  I am currently using Zope-2.2.1 (and Zope-2.2.2), ZPatterns-0-4-2a1 and
  LoginManager-0_8_7a1.
 
 I used Membership 0.7.6 on top of what you've got, and added
 support for local roles as detailed in this posting:
 
 http://lists.zope.org/pipermail/zope-dev/2000-September/007030.html
 
 This ought to give you the clues you need to add the
 neccessary getUserNames method to a SQL User Source, and
 make the LoginManager user_names modification as well. If
 you have any ideas on how to generalize the user_names
 method, I'd like to hear them.
 
 Let me know how it goes,
 
 Michael Bernstein.

-- 
And what is good, Phaedrus,
And what is not---
Need we ask anyone to tell us these things?

[ PGP public key: http://www.iki.fi/jonas/pubkey.asc ]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Removing uninstalled Prods from ZODB?

2000-10-06 Thread Jonas Juselius

Hola,

I would like to know how to remove removed Products from the ZODB. This might
sound silly, but I tried out POPMail and the PTK-0.8, then I uninstalled them 
and removed all the files. After I restarted Zope everything looked fine, no 
trace of the Products in the Control Panel Products list. However, I still
have 'Advanced' tabs from the PTK in some management screens, and the POPMail
has left some base classes for ZClasses. As a result of the POPMail garbage,
I'm not able to add any new ZClasses to the system because:

Error Type: Could not load oid 
Error Value: None

In the debug output I find that something related to POPMail is screwing up
my system... Can anybody tell me how to get rid of all this half uninstalled
Products (other than exporting all my objects and re-importing them into a
clean ZODB)? 

Perhaps an uninstall API for Products would be a good idea... something like

def unititalize(context):
context.unregisterClass() 

in __init__.py, that gets called when a Product is removed from the Product
Management screens...

cheers, 
 .jonas.

-- 
And what is good, Phaedrus,
And what is not---
Need we ask anyone to tell us these things?

[ PGP public key: http://www.iki.fi/jonas/pubkey.asc ]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] automatical login procedure

2000-10-06 Thread Loibl Johann

Hi,
now I know how to generate a user in the acl_user folder via 
dtml-var  "acl_users.manage_users('Add',REQUEST,RESPONSE)"

Now, how to login a user automatically via DTML?

Thanks to all readers and perhaps writers :-)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ToDoManager exampleworks for me on NT/win98

2000-10-06 Thread James Johnson

I'm using Zope 2.2.2 and ZPatterns-0-4-2a2(3).
Now I'm REALLY looking forward to ZPatterns-0-4-3 ;-)
I can't wait until this weekend.


Get your Free E-mail at http://tacoma.zzn.com

Get your own Web-Based E-mail Service at http://www.zzn.com

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Steve Spicklemire


I should point out a couple of things that might not be
obvious (that I noticed only on a second 'read' of the explaination):

1) getPersistentItemIds() can be a pain.

dtml-in "defaultRack.getPersistentItemIDs()" sort

is straightforward enough... but what if I don't care if they are
sorted, or I want to sort on some other property? One would
think that you could do something like...:

dtml-let foo="[]"
dtml-in "defaultRack.getPersistentItemIDs()"
dtml-call "foo.append(defaultRack.getItem(_['sequence-item']))"
/dtml-in

dtml-in foo sort=description
...
/dtml-in
/dtml-let

But it doesn't work! You get 'Authorization Failed'. There was a bit of email
on the list when I found this problem but it doesn't seem to bother
anyone too much it turns out that getPersistentItemIds() actually
returns a BTree object, which is not covered by the Zope security system
as an allowed 'simple' subobject. However, when you 'sort' the list
in the 'in' tag.. a side effect is that it it copied to a plain old
Zope list. so it's OK. ;-) So... you *can* do 

dtml-let foo="[]"
dtml-in "defaultRack.getPersistentItemIDs()" sort
dtml-call "foo.append(defaultRack.getItem(_['sequence-item']))"
/dtml-in

dtml-in foo sort=description
...
/dtml-in
/dtml-let

Soo.. the moral of that story is... if you're not allowed to see 
something... just sort it! :-) !! ;-(

2) This simple/dumb example using a Specialist/Rack combination. There is another
approach (that Steve Alexander has used a lot I gather) which is to use the
Folder with customizer support. I've never tried that since I went down this
road and wanted to sort it out before 'branching' to other methods. To be
fair I should probably try to implement this same example with that approach.

-steve


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ToDoManager ZPatterns example not working

2000-10-06 Thread Steve Spicklemire


Erp! Sorry... I think the ZClass and the Rack got out of sync...
I'll upload a new 'consistent' pair..

sorry!
-steve

 "Itai" == Itai Tavor [EMAIL PROTECTED] writes:

Itai Hi,

Itai I installed the ToDoManager/ToDoProduct example
Itai (http://www.zope.org/Members/sspickle/DumbZPatternsExample )
Itai but it won't work. System is RedHat 6.1, Zope 2.2.2,
Itai ZPatterns-0-4-2a3.

Itai I get the following traceback when I try to view
Itai /ToDoManager/index_html. Is it a bug somewhere or a problem
Itai with my installation?


Itai Error Type: AttributeError Error Value:
Itai _setRack

Itai Traceback (innermost last): File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/Publish.py,
Itai line 222, in publish_module File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/Publish.py,
Itai line 187, in publish File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/Zope/__init__.py, line
Itai 221, in zpublisher_exception_hook (Object:
Itai ProviderContainer) File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/Publish.py,
Itai line 171, in publish File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/mapply.py,
Itai line 160, in mapply (Object: index_html) File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/Publish.py,
Itai line 112, in call_object (Object: index_html) File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/OFS/DTMLDocument.py,
Itai line 177, in __call__ (Object: index_html) File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
Itai line 528, in __call__ (Object: index_html) File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
Itai line 691, in renderwob (Object:
Itai defaultRack.getPersistentItemIDs()) File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/DocumentTemplate/DT_Let.py,
Itai line 147, in render (Object: currID="_['sequence-item']")
Itai File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/DocumentTemplate/DT_With.py,
Itai line 133, in render (Object: getItem(currID)) File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
Itai line 337, in eval (Object: getItem(currID)) (Info: currID)
Itai File string, line 0, in ?  File
Itai /opt/Zope/lib/python/Products/ZPatterns/Specialists.py, line
Itai 34, in getItem (Object: ProviderContainer) File
Itai /opt/Zope/lib/python/Products/ZPatterns/Rack.py, line 60, in
Itai getItem (Object: ProviderContainer) File
Itai /opt/Zope/lib/python/Products/ZPatterns/Rack.py, line 114,
Itai in retrieveItem (Object: ProviderContainer) File
Itai /opt/Zope-2.2.2-linux2-x86/lib/python/OFS/Uninstalled.py,
Itai line 110, in __getattr__ (Object: broken) AttributeError:
Itai (see above) -- Itai Tavor "Je sautille, donc je suis."
Itai C3Works [EMAIL PROTECTED] - Kermit the Frog

Itai "If you haven't got your health, you haven't got anything"


Itai ___ Zope-Dev
Itai maillist - [EMAIL PROTECTED]
Itai http://lists.zope.org/mailman/listinfo/zope-dev ** No cross
Itai posts or HTML encoding!  ** (Related lists -
Itai http://lists.zope.org/mailman/listinfo/zope-announce
Itai http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Steve Spicklemire


Ack.. sorry... I was making little changes last night to make sure the
ZClass was completely consistent with my explaination, and to make
sure I could start 'from scratch'. I created a 'new' ZClass, and a
'new' rack. This confused the 'old' Rack. (I didn't update the
ToDoManager.zexp, so if you downloaded the new Product, but the old
ToDoManager you got the _setRack error. Anyway... I've now uploaded
both the ToDoManager and the ToDoProducts at 0.0.2. I also changed
the index_html of the ToDoManager to illustrated the getPersistentItemIds()
issue I wrote about earlier

good luck!
-steve

here's the new index_html:

dtml-var standard_html_header
center
br
h2dtml-var title/h2
p
dtml-let idList="[]"
dtml-in "defaultRack.getPersistentItemIDs()" sort
dtml-call "idList.append(getItem(_['sequence-item']))"
/dtml-in

dtml-in idList sort=description
dtml-if sequence-start
form action="." method="post"
table cellspacing=3 cellpadding=3 border=1
trtdnbsp;/tdthName/ththDescription/ththDoer/ththDone?/th/tr
/dtml-if

tr
tdinput type=checkbox name="ids:list" value="dtml-id;"/td
tda href="dtml-var id url_quote/editInstanceForm"dtml-var id/a/td
tddtml-var descriptionnbsp;/td
tddtml-var doernbsp;/td
tddtml-if doneDone!dtml-elsenbsp;/dtml-if/td

dtml-if sequence-end
trtd colspan=5 align=centerinput type=submit name="newToDoForm:method" value="Add 
New ToDo"input type=submit name="deleteInstances:method" value="Delete selected 
ToDos"/td/tr
/table
/dtml-if

dtml-else
Sorry.. no "to do"s!
br
form action="."
input type=submit name="newToDoForm:method" value="Add New ToDo"
/form
/dtml-in
/p
/dtml-let
/center
dtml-var standard_html_footer


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] cookies ie5.5 win

2000-10-06 Thread Sebastian Luehnsdorf

On Thu, 5 Oct 2000, Chris Withers wrote:

 Sebastian Luehnsdorf wrote:
  i'm having a strange problem with cookie based user authentication with
  ms internet explorer 5.5 on windows. it seems that the browser (but only
  this version and only under windows!) seems to "forget" its cookies, which
  results in an immediate logout. does anybody have similar experiences or a
  even solution?
 
 I've had this problem occasionally with other versions of IE.
 I wonder whether you're setting the path on cookies correctly?
 
 That's all I can think of...
 
 Anyone else noticed this?
 
 cheers,
 
 Chris
 

well, i am using the following bit of code:

  RESPONSE.setCookie('__ac', token, path='/', expires='0')  

where token is a valid authentication id (i could check that).

when i tried to set the domain to anything (empty string, hostname with 
without port, ip address with  without port), all browsers had problems
with the authentication...

ciao, basti

--
sebastian f. luehnsdorf beehive elektronische medien gmbh
--
http://basti.beehive.de http://www.beehive.de
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
http://www.zope.de  fon: (+49 30) 84 78 20
http://www.i-surf.defax: (+49 30) 84 78 22 99


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Re: Zope static html

2000-10-06 Thread ross

Yours is the third enquiry I've had about this in the past week !!!

You can do this in a very general way using wget which is freely
available and very configurable.

Another option is to look at ZMirror in
http://www.zope.org/Members/rossl/ZMirror - not because it will solve
all your problems, but because the code is certainly a useful starting
point.

Turns out that it's a non-trivial task to do this in completely general
way. 

I now tend to write very specific external methods based on the code in
zmirror.

good luck.

Vijay Pawar wrote:
 
 Hi,
 I saw your discussion article enclosed below:
 Do you have a Zope external method/ Python code to create static html from
 Zope. Any help is much appreciated.
 
 Thanks,
 Vijay
 
 [Zope] ANN: Experimental zope-static html mirror external method
 Dr. Ross Lazarus [EMAIL PROTECTED]
 Sat, 05 Jun 1999 22:35:04 +1000
 
 Previous message: [Zope] Changing default new document contents
 Next message: [Zope] A single value from SQL
 Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
 
 
 
 Anyone needing to write a static html rendition of a zope site to a file
 system is welcome to try a very rough pre-alpha external method.
 
 fileme.py and fileme.txt are available via anonymous ftp at
 rossl.gmp.usyd.edu.au - or ftp://rossl.gmp.usyd.edu.au/ if you need to
 use a web browser.
 
 A more stable product will eventually appear. Please only try this
 release if you like to live dangerouslywget is safer and can
 probably do a better job.
 
 Bug reports, fixes and constructive comments to [EMAIL PROTECTED]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Re: [Zope-ZEO] How to get rid of the cPickle and asyncore dependencyhassleshassles

2000-10-06 Thread Jim Fulton

Toby Dickenson wrote:
 
 [cc to zope-dev.]
 
   Ive been using Zope only with Python 2.0 recently.
 
  That's great to hear. I'm frankly a bit surprised that
  this works.
 
 2.0 is a suprisingly conservative upgrade from 1.5.2
 
  Did you have to make many changes to Zope?
 
 All my critical patches are already merged into the Zope cvs, or the Python
 cvs ;-)
 
 There are also some non-critical bug fixes related to Unicode awareness,
 bundled up with my other Unicode-In-Zope patches at
 http://www.zope.org/Members/htrd/wstring. These mostly relate to the fact
 that Zope does not defend against objects that raise exceptions when
 converted to a string using str() - and Unicode objects do this frequently.
 
 (At the moment these extra patches are not 1.5.2 compatible... Ill work on
 this if DC feel the need for a transition period during which Zope supports
 both 1.5.2 and 2.0.)
 
  I heard that ExtensionClass didn't work with Python 2.0.
 
 It looks like a little work is needed to support 2.0's garbage collection of
 cyclic trash - but thats not enabled by default. Apart from that, everything
 works very well. (In some ways, better than 1.5.2)

Wow! That's swesome.  I'll get back to you on some of this.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
Technical Director   (888) 344-4332http://www.python.org  
Digital Creationshttp://www.digicool.com   http://www.zope.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Re: Python 2.0; Garbage Collection

2000-10-06 Thread Toby Dickenson

[Toby]

 It looks like a little work is needed to support 2.0's garbage collection of
 cyclic trash 

[Neil]

 Which 2.0 are you using?

I was basing my comments on my last attempt in mid July.


Ive just tried enabling WITH_CYCLE_GC again (and with the patch below)
and it does all seem to be working happily. Ill make further tests
next week. 



Index: z2.py
===
RCS file: /home/cvs/development/external/Zope2/z2.py,v
retrieving revision 1.4
retrieving revision 1.7
diff -c -4 -r1.4 -r1.7
***
*** 430,443 
  if v=='-': v=''
  DNS_IP=v
  elif o=='-u': UID=v
  elif o=='-D':
  os.environ['Z_DEBUG_MODE']='1'
  DEBUG=1
  elif o=='-S': sys.ZMANAGED=1
  elif o=='-X':
--- 429,448 
  if v=='-': v=''
  DNS_IP=v
  elif o=='-u': UID=v
  elif o=='-D':
+ try:
+ import gc
+ except ImportError:
+ pass
+ else:
+ gc.set_debug(gc.DEBUG_LEAK)
  os.environ['Z_DEBUG_MODE']='1'
  DEBUG=1
  elif o=='-S': sys.ZMANAGED=1
  elif o=='-X':





Toby Dickenson
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ZSQL returns integer only

2000-10-06 Thread Walter Miller

The Oracle8i recordset I'm retrieving includes a few columns which are
NUMBER(10,0) format which are milliseconds.  I would like to divide each by
1000 and use the ROUND function to return a result with one decimal place,
e.g. ROUND(column1/1000, 1) returns 3.1 where column1 == 3080.

This works as expected in SQL*Plus.  It returns the results as a number
formated to one decimal place.  ZSQL however returns only an integer.

Any suggestions on how to get the decimal places to show?

-Walter


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Phillip J. Eby

At 04:01 PM 10/6/00 +, Ty Sarna wrote:

I think this is due to Shane's fix for allowing LM's as non-top-level
acl_users. I had it originally so that _owner was a class attribute,
which works fine. With the change, it was added as an instance
attribute. Now, UnownableOwner is just an empty list, []. Zope checks
for UnownableOwner using an identity check, that is in python: "_owner is
UnownableOwner". When the LM is pickled to ZODB and reloaded, _owner is
still an empty list, but it's not *the* empty list. That is, in python
terms: it's still *equal* to UO, but it isn't "is" UO.

We could go back to just having it as a class attribute, but then that
breaks when adding a LM anywhere other than the top folder, because Zope
wants to delete the _owner from it.

Actually, Ty, AFAIK this is now fixed in Zope 2.2.x;  IIRC Brian made some
changes to the ownership machinery to deal with _owner being a class
variable.  We should probably put out a new LM release to go with ZPatterns
0.4.3.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZSQL returns integer only

2000-10-06 Thread Christopher Petrilli

On 10/6/00 12:19 PM, "Walter Miller" [EMAIL PROTECTED] wrote:

 The Oracle8i recordset I'm retrieving includes a few columns which are
 NUMBER(10,0) format which are milliseconds.  I would like to divide each by
 1000 and use the ROUND function to return a result with one decimal place,
 e.g. ROUND(column1/1000, 1) returns 3.1 where column1 == 3080.
 
 This works as expected in SQL*Plus.  It returns the results as a number
 formated to one decimal place.  ZSQL however returns only an integer.
 
 Any suggestions on how to get the decimal places to show?

Please make sure you're using the latest Oracle DA, as there was a bug in
handling of things that oracle returns as NUMBER(0,0) (which is basically a
floating point, but we interpreted as a numberb ecause the scale was 0).

Chris
-- 
| Christopher Petrilli Digital Creations
| [EMAIL PROTECTED]Where Zope comes from


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Locking (supercedes original writelocking proposal)

2000-10-06 Thread Jeffrey P Shell

This supercedes the original WriteLocking proposal which was initially just
to cover WebDAV's current write locking ability.

http://dev.zope.org/Wikis/DevSite/Proposals/WriteLocking

-- 
Jeffrey P Shell, [EMAIL PROTECTED]
http://www.zope.org/


































 

.oO


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Is this a ZClass/Propertysheet bug?

2000-10-06 Thread Morten W. Petersen

 Is this behavior correct?

See http://www.zope.org/Members/paulabrams/howto_deleteundeadzclassprops
for help.

It is not a bug per se, Python (upon which ZOPE is based) is built this
way, i.e. if you create a class with certain attributes, every instance
will keep those attributes, even if they are deleted from the class
itself, and new instances that are instansiated from the now modified
class will not.

-Morten


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Is this a ZClass/Propertysheet bug?

2000-10-06 Thread Morten W. Petersen

On Fri, 6 Oct 2000, Morten W. Petersen wrote:

 It is not a bug per se, Python (upon which ZOPE is based) is built this
 way, i.e. if you create a class with certain attributes, every instance
 will keep those attributes, even if they are deleted from the class
 itself, and new instances that are instansiated from the now modified
 class will not.

Context got mixed up, please disregard.

-Morten


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Michael Bernstein

Steve Spicklemire wrote:
 
 Ack.. sorry... I was making little changes last night to make sure
 the ZClass was completely consistent with my explaination, and to
 make sure I could start 'from scratch'.

Ok, I just got through stepping through the walkthrough. Thanks! That
*was* a really simple example. Perfect!

I had a few comments:

- You skipped over creating the Product in the Products folder.

- Propertysheets: You don't expressly say that Shared needs to be a
'Common Instance Property Sheet'.

- ToDoManager: I was initially confused as to where this needed to be
created. I tried placing it directly in the Product as well as in the
ZCLass before I tried placing it in a normal folder.

Ok, moving forward, I had some questions about this approach to building
applications:

- What do I need to do to let users add ToDoManagers to their own
folders without creating them from scratch? In other words, How do I
turn ToDoManager into a product?

- The term 'Specialist' implies (at least to me) that this object is
overiding/replacing a 'Generalist' somewhere, but this does not seem to
be the case here. Am I missing something?

- I'm trying to reconcile PJE's methodology of Domain Logic,
Presentation Logic, Data Management Implementation Logic, and User
Interface Implementation Logic. Can you (or Phillip) label each of the
DTML methods as to which category they fall into? And state why, even if
it seems obvious?

- How does this product (simple though it is) exemplify the RIPP
approach? In other words, assume I'm asking annoying whiny two-year-old
'why?' questions after every declarative statement in the tutorial.

Anyway, I'll try to synthesize all of the replies I get (if any) into a
beginners 'Zen of ZPatterns' tutorial.

Thanks again for such a simple example!

Michael Bernstein.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )





Re: [Zope-dev] Re: Zpatterns design questions

2000-10-06 Thread Phillip J. Eby

At 10:09 AM 10/5/00 -0700, James Johnson wrote:
I heard that it's possible to have a dtml only zpatterns based 
example. I would like something like
Product
  specialist
addObj
  Zclass
index_html
readObj
  Factory
  Permission
Would this be a correct way to proceed?


Yes, except that the Factory and Permission would not be required, and the
Specialist would belong in a folder, not in the Product.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Phillip J. Eby

At 07:59 AM 10/5/00 -0700, Michael Bernstein wrote:
"Phillip J. Eby" wrote:
 
 Domain logic: methods which implement the basic behavior of an object, by
 manipulating its attributes and by calling methods on itself or other
 objects.  (Including delegation to a Specialist, its own or another.)
 
 Presentation logic: "view" methods which implement user interface by
 displaying object attributes and/or the results of either presentation or
 domain methods, and "controller/view" methods which call domain logic
 methods and display results.
 
 Implementation logic: All of the code and objects contained in a Specialist
 which map between the domain model of an object and its physical storage
 implementation(s).  This category can be further subdivided into data
 management implementation, and UI implementation.
 
 DM implementation deals with storing and retrieving objects and associated
 data, and firing off of implementation rules (e.g. ensure that all objects
 which meet such-and-such criteria are cataloged in catalog Foo).
 
 UI implementation deals with providing snippets suitable for use by
 collaborating classes and/or specialists.  For example, [snip]

How (and why) do you distinguish between UI implementation
and presentation logic?

Presentation logic lives with an object's class, and deals with what that
object knows about presenting itself.  UI implementation is "glue"
presentation that lives in a Specialist for use by any object that needs to
present UI related to objects of the kind the Specialist handles.  The
terms used here are "official" terminology with precise definitions, btw.
I am just trying to answer your questions as best I know how.


An example of presentation logic would be a method which displays a form to
perform some action on the object.  E.g., let's say we have a "Task" object
with an "Assign To" form.  Tasks are assigned to Assignees, but in a given
application, there could be many possible kinds of Assignees and the means
of selecting an Assignee is context-dependent.  Thus, a Task's presentation
logic cannot implement such a thing directly; it must ask the Assignees
specialist for a code snippet (UI implementation) that displays an assignee
selection sub-form within its "Assign To" form.

As a counter-example to the above, consider Zope's local roles UI.  When
you assign local roles, Zope goes to the specialist "acl_users" and asks it
for all possible users, then displays them in a dropdown list.  While we
could do the same thing in our Task/Assignees example (i.e. have Task just
display a dropdown list of all Assignees), this is bad because it does not
scale well.  What if our Task object is used for a company intranet where
there are 10,000 employees?  What if assignees can be either employees or
outside vendors, and they are looked up differently?

The Assignees specialist is responsible for providing an appropriate UI
implementation (hence the name) for this operation.  It could provide a
dropdown list, a type-in box with a button to pop up a search window that
lets you search the employee directory, or any number of other possible
implementations that would get the necessary data back to the assignment
method once the form was submitted.  We could include a simple
implementation with our task management framework, and the application
integrator would override it if needed for their situation.

This is what UI implementation logic is for, and it's an important part of
the rationale for the existence of Specialists (formerly known as
Implementors).


 Our current practice is to place both domain and presentation logic in
 ZClasses, [snip]

Do domain and presentation logic methods go into the *same*
ZClass, or separate ones (I realize that this may be a
stupid question)?

Same one.  We assume that it is more useful/important for a framework to
offer ready-to-use classes than lots of mixins.

 dropping down to ExternalMethods or Python bases for the ZClasses
 when domain logic requires things you can't do in DTML or PythonMethods.
 Domain and presentation logic are kept to seperate methods, so that domain
 logic methods can be re-used for XML-RPC or other programmatic interfaces.
 Presentation is usually done in a flexible way, relying upon UI
 implementation hooks where sensible.  (Since objects under a specialist
 acquire from the specialist, it's easy to hook to a specialist-level
 utility method.)


I understood what you were saying until the parentheses.
Could you repeat that part in a different way?

Objects retrieved from a Specialist (in general) have the Specialist as
their aq_parent.  This means that if an object wants to use UI
implementation snippets from its own Specialist, it can do so without
having to explicitly name the specialist.  This is useful for two kinds of
snippets: 1) lookup snippets as described earlier, and 2) configuration
snippets, ala standard_html_header, which can be used to customize the look
of the presentation logic.


 We have not yet 

Re: [Zope-dev] Accessors for DataSkin attributes (was Re: [Zope-dev] Success!

2000-10-06 Thread Phillip J. Eby

At 02:24 PM 10/5/00 -0500, Steve Spicklemire wrote:

You're not using propertysheet providers, but DataSkin propertysheets
'installed' in a ZClass that directly inherits from DataSkin. Your use
of the "Data Skin Attribute Property Sheets" is primarily to associate
permissions with groupings of attributes, and to simplify
establishment and management of those properties through the ZClass
administrative interface. As a bonus, you get 'free' methods needed to
adjust these attributes from DTML (i.e., manage_changeProperties) without
requiring custom PropertyHandlers.

Yes.


I did notice that when I create a ZClass (in a completely different
project) that inherits from a Python Product (registered with
registerBaseClass) that inherits from DataSkin, I don't get the option
of a DataSkin propertysheet, in the 'common' container of the ZClass,
so there's probably some manual fiddling I need to do when I register
my ZClass base class that I'm not doing...

A simple way to avoid this is to simply create the ZClass subclassed from
DataSkin *and* your Python class.


I'm guessing that the code that defines the SkinZISS, SZHolder, and
_ZClass_for_DataSkin culminating in registerZClass perform the
necessary magic to make that happen

Yes.  If you want to make this work on a Python class, you need to do
something like:

class _ZClass_for_MyClass(_ZClass_for_DataSkin):
_zclass_ = MyClass

And then in your registration, call:

context.registerZClass(_ZClass_for_MyClass)

That should be it.


This is deep magic!

Aye.  Here there be dragons.  :)  Wait'll you see the magic I had to do in
0.4.3 to get ZClass PlugIns and PlugInContainers to work...



Sooo... if I want my DataSkin subclass to have the same ability
I'll need to do something similar? (just replace _zclass_ = DataSkin
with _zclass_ = MyDataSkinSubclass?) 

See above for the shortest way to do this.


Well.. my *new* strategy (I'm using this on EMarket) is to put all the
core logic in a Specialist subclass... and let my DataSkins be
ZClasses that are directly subclassed from __ZClass_for_DataSkin. This
has its own problems (I still have a hard time working in a
'specialist' on a method that is supposed to be acquired by a
DataSkin, and keeping track of who 'self' is and what properties I can
really get to etc...). 

Personally, I don't recommend this approach, even if you end up with a
ZClass that doesn't do much besides have a propertysheet or two.


Why did I do all that? I am used to a development routine where I work
a while... in emacs.. then hit ctrl-c ctrl-c which 'runs' the current
module. With this setup, everything in Thing.py can work without
Zope. All my core logic can be tested and I can verify that it works
correctly *before* I layer all the ZClass stuff on top. (I know..  now
I guess I need to learn to use ZPublisher/Client.py ;-) Of course
this requires that my ZClasses are subclasses of my core logic base
class.. and I now understand why that is generally undesirable. (It
makes integrating frameworks later more difficult ) But there is a
clear advantage... I think that with the flexibility of Racks and
SkinScript you could probably even have the best of all possible
worlds...

It is *not* undesirable to have ZClasses be subclasses of your core logic
base class.  Just make sure they *also* subclass DataSkin, or that you use
the metaclass definition stuff above.  You've actually got a pretty decent
approach going there.

One question, though.  Why the derivation from Folder?


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Phillip J. Eby

At 03:44 PM 10/6/00 -0500, Michael Bernstein wrote:
Steve Spicklemire wrote:
 
 Ack.. sorry... I was making little changes last night to make sure
 the ZClass was completely consistent with my explaination, and to
 make sure I could start 'from scratch'.

Ok, I just got through stepping through the walkthrough. Thanks! That
*was* a really simple example. Perfect!

I had a few comments:

- You skipped over creating the Product in the Products folder.

Yep, gotta do that.

- Propertysheets: You don't expressly say that Shared needs to be a
'Common Instance Property Sheet'.

Actually, if it's intended to be shared across all instances, there seems
to me to be little reason to have it in the ZClass; you might as well
define the properties as constants using SkinScript.  However, if you want
to have defaults that an application integrator will be able to override
without actually subclassing, then you want Shared to be a DataSkin
Property Sheet, so that they will have the option of overriding your
defaults with SkinScript or another attribute provider.


- ToDoManager: I was initially confused as to where this needed to be
created. I tried placing it directly in the Product as well as in the
ZCLass before I tried placing it in a normal folder.

Yes, Specialists go in the application space, as they are part of the
application.  A product developer may want to create one in the product,
but only so that it can be copied into application space by a factory.
Btw, in strict RIPP convention, ToDoManager would be named "ToDos", as the
plural form of the role the objects play in the framework.


Ok, moving forward, I had some questions about this approach to building

applications:

- What do I need to do to let users add ToDoManagers to their own
folders without creating them from scratch? In other words, How do I
turn ToDoManager into a product?

You can put it in the product, then create two methods - a constructor form
and a constructor method, along with a Permission.  Last, create a Zope
Factory that calls the constructor form.  The constructor method would copy
the specialist and paste it into the chosen destination.


- The term 'Specialist' implies (at least to me) that this object is
overiding/replacing a 'Generalist' somewhere, but this does not seem to
be the case here. Am I missing something?

Specialist means "one who specializes", not "thing which is specialized".
:)  There are no Generalists, unless you consider the application/Zope site
as a whole to be one.  :)


- I'm trying to reconcile PJE's methodology of Domain Logic,
Presentation Logic, Data Management Implementation Logic, and User
Interface Implementation Logic. Can you (or Phillip) label each of the
DTML methods as to which category they fall into? And state why, even if
it seems obvious?

In the ZClass:

index_html - presentation, because it displays things the object knows

editInstanceForm - presentation, because it is strictly display

editInstance - primarily domain, but mixes some presentation in.  If
instead of displaying an OK button, it just did a redirect, I'd consider it
a pure domain.  Note, by the way, that it's not wrong to mix the two, it's
just usually more reusable to keep presentation code out of domain methods
if you want to be able to call them from code or XML-RPC and such.

In the Specialist (btw, stric:

index_html: UI implementation, because it implements a non-object specific
UI (i.e. "display all to-do's").

newToDoForm: UI implementation, because it's a non-specific object UI.

addNewToDo: DM implementation, polluted by a bit of UI.  :)  It implements
the data management aspect of creating a new instance.  It calls the
Specialist's newItem() method, but it could have directly called a
newItem() method on one of the Specialist's Racks, or done something else
to create the instance.

deleteInstances: DM implementation, again with a touch of UI.  It
implements the data management aspect of creating a new instance.  Instead
of doing manage_delete on each item, this could have been implemented as an
SQLMethod that did a DELETE WHERE operation using the id's that were given
(if the data store was an SQL database, of course).


- How does this product (simple though it is) exemplify the RIPP
approach?

I'm not sure that you can say it *exemplifies* the RIPP approach, although
it certainly goes along with that approach.  My hesitation is mainly that
it doesn't really show any of RIPP's major benefits, which are associated
with framework re-use and integration.  For that, you really need to have
more than one kind of object, with some kind of collaboration taking place.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Steve Spicklemire


 "pje" == Phillip J Eby [EMAIL PROTECTED] writes:

 - Propertysheets: You don't expressly say that Shared needs to
 be a 'Common Instance Property Sheet'.

pje Actually, if it's intended to be shared across all instances,
pje there seems to me to be little reason to have it in the
pje ZClass; you might as well define the properties as constants
pje using SkinScript.  However, if you want to have defaults that
pje an application integrator will be able to override without
pje actually subclassing, then you want Shared to be a DataSkin
pje Property Sheet, so that they will have the option of
pje overriding your defaults with SkinScript or another attribute
pje provider.

Yeah.. now that I think about it a little more clearly, it makes
sense to define this in the Specialist itself. This way all the instances
in a ToDoManager would share the same set of 'doers', but different
ToDoManagers could keep their own custom set.

 - I'm trying to reconcile PJE's methodology of Domain Logic,
 Presentation Logic, Data Management Implementation Logic, and
 User Interface Implementation Logic. Can you (or Phillip) label
 each of the DTML methods as to which category they fall into?
 And state why, even if it seems obvious?

pje In the ZClass:

pje index_html - presentation, because it displays things the
pje object knows

pje editInstanceForm - presentation, because it is strictly
pje display

pje editInstance - primarily domain, but mixes some presentation
pje in.  If instead of displaying an OK button, it just did a
pje redirect, I'd consider it a pure domain.  Note, by the way,
pje that it's not wrong to mix the two, it's just usually more
pje reusable to keep presentation code out of domain methods if
pje you want to be able to call them from code or XML-RPC and
pje such.

Good! This is the kind of feedback I need! So I can pass in 
a redirection URL so that the domain code can work in different
environments easily.

pje In the Specialist (btw, stric:

pje index_html: UI implementation, because it implements a
pje non-object specific UI (i.e. "display all to-do's").

pje newToDoForm: UI implementation, because it's a non-specific
pje object UI.

pje addNewToDo: DM implementation, polluted by a bit of UI.  :)
pje It implements the data management aspect of creating a new
pje instance.  It calls the Specialist's newItem() method, but it
pje could have directly called a newItem() method on one of the
pje Specialist's Racks, or done something else to create the
pje instance.

pje deleteInstances: DM implementation, again with a touch of UI.
pje It implements the data management aspect of creating a new
pje instance.  Instead of doing manage_delete on each item, this
pje could have been implemented as an SQLMethod that did a DELETE
pje WHERE operation using the id's that were given (if the data
pje store was an SQL database, of course).

OK.. I'll go back and try to 'clean out' the UI pollution to 
illustrate that separation better.

 - How does this product (simple though it is) exemplify the
 RIPP approach?

pje I'm not sure that you can say it *exemplifies* the RIPP
pje approach, although it certainly goes along with that
pje approach.  My hesitation is mainly that it doesn't really
pje show any of RIPP's major benefits, which are associated with
pje framework re-use and integration.  For that, you really need
pje to have more than one kind of object, with some kind of
pje collaboration taking place.

Hmm.. can anyone thing of a good collaboration 'partner' for
a simple ToDo list? If it's not too complex.. I'd be happy to 
add it.

thanks,
-steve

P.S. my first alpha of EMarket based on ZPatterns is just about
ready. I'm sure it's full of similar pollution. This would
be a great place for a design review. ;-)


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Accessors for DataSkin attributes (was Re: [Zope-dev] Success!

2000-10-06 Thread Steve Spicklemire


 "pje" == Phillip J Eby [EMAIL PROTECTED] writes:

pje It is *not* undesirable to have ZClasses be subclasses of
pje your core logic base class.  Just make sure they *also*
pje subclass DataSkin, or that you use the metaclass definition
pje stuff above.  You've actually got a pretty decent approach
pje going there.

Hmmm.. again, maybe I'm reading too much into the DropZone example,
but I seem to recall there that subclassing was pretty much
explicitly discouraged.  Did I misinterpret that?

'''
 Notice that we do not subclass SkyDiver from a Customer class and a
 ResourceUser class. What we are doing is saying is that Customer is a
 role that a Party (person or organization) plays in an accounting
 system, and ResourceUser is a role that a Party plays in a resource
 scheduling system. SkyDiver, then should implement a Party interface,
 allowing it to be used as a Customer or ResourceUser. Thus, SkyDiver
 can be used by any framework that needs to collaborate with a Party
 object, although it may have a new role in which the party will be
 used. For example, if I later add a curriculum management system to
 cover my skydiver training courses, I will want SkyDiver to fill the
 Student role.
'''

OK.. allow me to summarize my very latest thought. Subclassing
is OK withing my own framework. It's OK to require users of my
framework to create ZClasses that subclass from my core logic
Python classes, and from DataSkin. If we need integration between
frameworks, we can handle that in SkinScript to share attributes 
between Specialist, or anthing else that might be helpful in 
providing the needed information.

Does that sound right?

pje One question, though.  Why the derivation from Folder?

Oh... this was a case where my object, in addition to 'simple'
properties also needed to 'contain' other stuff (files, images and the
like...) making it a subclass of folder just got me that ability for
'free'. I could also have used ObjectManager, but making it folder
just reduces the amount of 'UI' effort needed for the management
interface of the contained stuff. I could have just created a 
plain folder with the same 'id' as my DataSkin, and 'associated' they
two, but it made some sort of sense to keep them all together.

-steve



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope] sudden ZClass breakage

2000-10-06 Thread Kapil Thangavelu

Timothy Wilson wrote:
 
 Hi everyone,
 
 I've been working away on a ZClass-based product that will provide a
 searchable job board for our Human Resources Dept. here at school. Things
 were going along fine until, it seemed, out of the blue I started getting an
 error message about an "Invalid Date-Time String" and a lengthy
 traceback. I'm wondering if anyone can glean anything from the
 traceback. Is this one of those obvious errors that I'm just missing? I'm
 really puzzled. Any advice would be appreciated. Here's the traceback:

You're trying to change the zclass properties after creating it but
you're not passing in a valid date time string and hence you're getting
this error. Make sure the string you're passing in conforms to a date
time format. (check ZOPE_HOME/lib/python/DateTime/DateTime.py for the
supported formats), or just cast it explicitly like dtml-call
"REQUEST.set('date', DateTime('datestring'))". I've noticed some
behavior earlier today where i change all my zclass properties in a
manage_changeProperties (depends on where) even ones not listed in the
request. if this is your problem and you don't have date_time string set
in the REQUEST you can try explicitly passing in a dummy date time
string (ZopeTime or distant past), or setting it to its default value, 

dtml-with object
dtml-call "REQUEST.set('Date', date)"
/dtml-with

i'd chuck this into the Collector/Tracker.

i'm sure others have good solutions.


 !--
 Traceback (innermost last):
   File /var/lib/zope/2.2.2/lib/python/ZPublisher/Publish.py, line 222, in
 publish_module
   File /var/lib/zope/2.2.2/lib/python/ZPublisher/Publish.py, line 187, in
 publish
   File /var/lib/zope/2.2.2/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: Traversable)
   File /var/lib/zope/2.2.2/lib/python/ZPublisher/Publish.py, line 171, in
 publish
   File /var/lib/zope/2.2.2/lib/python/ZPublisher/mapply.py, line 160, in
 mapply
 (Object: entry_addProcessor)
   File /var/lib/zope/2.2.2/lib/python/ZPublisher/Publish.py, line 112, in
 call_object
 (Object: entry_addProcessor)
   File /var/lib/zope/2.2.2/lib/python/OFS/DTMLMethod.py, line 172, in
 __call__
 (Object: entry_addProcessor)
   File /var/lib/zope/2.2.2/lib/python/DocumentTemplate/DT_String.py, line
 528, in __call__
 (Object: entry_addProcessor)
   File /var/lib/zope/2.2.2/lib/python/DocumentTemplate/DT_With.py, line 146,
 in render
 (Object: manage_addProduct['JobBoard'])
   File /var/lib/zope/2.2.2/lib/python/DocumentTemplate/DT_Util.py, line 337,
 in eval
 (Object: job_board_entry_add(_.None,_, NoRedir=1))
 (Info: _)
   File string, line 0, in ?
   File /var/lib/zope/2.2.2/lib/python/OFS/DTMLMethod.py, line 168, in
 __call__
 (Object: job_board_entry_add)
   File /var/lib/zope/2.2.2/lib/python/DocumentTemplate/DT_String.py, line
 528, in __call__
 (Object: job_board_entry_add)
   File /var/lib/zope/2.2.2/lib/python/DocumentTemplate/DT_With.py, line 146,
 in render
 (Object: job_board_entry.createInObjectManager(REQUEST['jobID'],
 REQUEST))
   File /var/lib/zope/2.2.2/lib/python/DocumentTemplate/DT_Util.py, line 337,
 in eval
 (Object: propertysheets.entry_info.manage_editProperties(REQUEST))
 (Info: REQUEST)
   File string, line 0, in ?
   File /var/lib/zope/2.2.2/lib/python/OFS/PropertySheets.py, line 458, in
 manage_editProperties
 (Object: Traversable)
   File /var/lib/zope/2.2.2/lib/python/OFS/PropertySheets.py, line 285, in
 _updateProperty
 (Object: Traversable)
   File /var/lib/zope/2.2.2/lib/python/ZPublisher/Converters.py, line 173, in
 field2date
   File /var/lib/zope/2.2.2/lib/python/DateTime/DateTime.py, line 698, in
 __init__
 Invalid Date-Time String: (see above)
 
 --
 
 -Tim
 
 --
 Tim Wilson  | Visit Sibley online: | Check out:
 Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
 W. St. Paul, MN |  | http://slashdot.org/
 [EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.com/
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] redirect to user's folder not working

2000-10-06 Thread knight

 On Fri, 06 Oct 2000, Andy McKay wrote:
  AUTHENTICATED_USER is not a string so need to cast it before doing the
  string operation:
 
  dtml-call "RESPONSE.redirect(URL1 + '/' + _.str(AUTHENTICATED_USER))"
 
  dtml-var AUTHENTICATED_USER effectively does the same thing, it calls the
  string representation of AUTHENTICATED_USER.
 
 
 A more 'polite' way to get the user name is to use 
 AUTHENTICATED_USER.getUserName().  Not as short, true, but definitely more 
 explicit.

Agreed. Any remember, several user managers don't completely conform to
the AUTHENTICATED_USER "standards", and you might see calling
AUTHENTICATED_USER directly fail completely.

;]

Knight
[EMAIL PROTECTED]


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] external method database connection

2000-10-06 Thread knight

Also, you could always import the specific module for your database, and
create a db connection, then execute() and fetch() directly. Although, if
you are putting this in an external method, it would be wiser to use your
existing ZSQL methods ;]

Knight
[EMAIL PROTECTED]

On Fri, 6 Oct 2000, knight wrote:

 
  How do I get  a zope database connection from an enternal method? 
 
 You can access your db using your existing ZSQL Methods by calling them
 from the namespace passed in, specifically self.
 
 Example:
 
 def myextmethod(self):
   mfl_id = 3
   results = self.sqlCountUsers(mfl_id=mfl_id)
   for result in results:
 print result[0], result[3]
 
 
 
 Keep in mind that a list is returned, not a dictionary.
 
 Knight
 [EMAIL PROTECTED]
 
 
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] XMLDocument create attributes problem

2000-10-06 Thread matt

Hi,
I'm trying to make an external method create and set some attributes of nodes
in an XML document.  The following is a fragment of the code, and the error.  I
can't even get a valid attribute created, let alone set.  Does anyone have some
examples?

Please could you reply to me as well as the list,

regards
Matt


from Products.XMLDocument.XMLDocument import Document
 
def add(self, id, title):
ob=Document()
ob.title=title
ob.id=id
id=self._setObject(id, ob)
 
log_node = ob.createElement('log')
 
an_at = ob.createAttribute('attribute1')  



Zope Error

Zope has encountered an error while publishing this resource. 

Error Type: TypeError
Error Value: too many arguments; expected 3, got 4

Traceback (innermost last):
  File /usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 
222, in publish_module
  File /usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 
187, in publish
  File /usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 
171, in publish
  File /usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 
160, in mapply
(Object: CreateNewsItem)
  File /usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 
112, in call_object
(Object: CreateNewsItem)
  File /usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/OFS/DTMLMethod.py, line 172, 
in __call__
(Object: CreateNewsItem)
  File /usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, 
line 528, in __call__
(Object: CreateNewsItem)
  File /usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, 
line 337, in eval
(Object: addxmldoc('test', 'some_title_test'))
(Info: addxmldoc)
  File string, line 0, in ?
  File 
/usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/Products/ExternalMethod/ExternalMethod.py,
 line 270, in __call__
(Object: addxmldoc)
(Info: (('test', 'some_title_test'), {}, None))
  File /usr/local/zope/Zope-2.2.0-linux2-x86/Extensions/addxmldoc.py, line 11, in add
(Object: Traversable)
  File 
/usr/local/zope/Zope-2.2.0-linux2-x86/lib/python/Products/XMLDocument/XMLDocument.py, 
line 283, in createAttribute
(Object: Manageable)
TypeError: (see above)

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Migrating from 2.1.6 to 2.2.2

2000-10-06 Thread Ragnar Beer

Take a look at http://www.zope.org/Products/Zope/2.2.0/upgrading_to_220.

Ragnar

I have a Zope based web site running under 2.1.6.  I want to move it 
to a different machine which will be running 2.2.2.  Can someone 
identify the steps I need to take to make this move?  What things do 
I need to be aware of in moving between these versions?  Do I just 
need to copy the data.fs along with any required product files, or 
do I need move/configure other things.

Thanks.


___
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
http://lists.zope.org/mailman/listinfo/zope-dev )


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Passing lists to zsql methods

2000-10-06 Thread steve smith

I have a form comprising two selection lists, each supporting multiple
selection. I want the inputs to become parameters to a zsql method. I find
the input works if the user selects at least one item from each list, but
fails with a 'bad object id' message if either list is left unselected. I
have tried providing a default list value, no luck. Any ideas out there?

The form looks like:

dtml-var standard_html_header
pfont face="Arial"Use this form to specify the parameters for your query
or
submission
pAll fields are optional
pMultiple selection is supported - hold down the CONTROL key/font
/p
FORM action="dtSubmitRumour"

SELECT name="Operators:list" multiple

 dtml-in dbRetrieveAllOperators

OPTION VALUE='dtml-var OperatorID'
  dtml-var FullName null="None in particular"
/OPTION
 /dtml-in
/SELECT

SELECT name="Classes:list" multiple

 dtml-in dbRetrieveAllClasses

OPTION VALUE='dtml-var OperatorClassID'
  dtml-var "FullName + OperatorClass + ' Class'"
/OPTION
 /dtml-in
/SELECT

input type="submit" value="Submit" name="B1"/p

/FORM

and the zsql method reads:

use thetable
BEGIN transaction INSERT INTO rumours
   (Description)
   VALUES (dtml-sqlvar Description type=nb optional)
   DECLARE @rumourid int
   SELECT @rumourid = MAX(rumourid)
 FROM rumours
COMMIT

dtml-if Operators
dtml-in Operators
 INSERT
   INTO roperators(rumourid, OperatorID)
VALUES (@rumourid, dtml-sqlvar sequence-item type=int)
/dtml-in
/dtml-if
dtml-if Classes
dtml-in Classes
 INSERT
   INTO rclasses(rumourid, ClassID)
VALUES (@rumourid, dtml-sqlvar sequence-item type=int)
/dtml-in
/dtml-if


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Base ZClass propertysheet management

2000-10-06 Thread Seb Bacon

I've got a ZClass "A" that subclasses another ZClass "B".  I can use the
default propertysheets/B/manage method to update B's properties; but how do
I access the properties of A through the management interface?

Many thanks

Seb.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
knight
Sent: 06 October 2000 10:05
To: [EMAIL PROTECTED]
Cc: Mark Twiddy
Subject: Re: [Zope] external method database connection


Also, you could always import the specific module for your database, and
create a db connection, then execute() and fetch() directly. Although, if
you are putting this in an external method, it would be wiser to use your
existing ZSQL methods ;]

Knight
[EMAIL PROTECTED]

On Fri, 6 Oct 2000, knight wrote:


  How do I get  a zope database connection from an enternal method?

 You can access your db using your existing ZSQL Methods by calling them
 from the namespace passed in, specifically self.

 Example:

 def myextmethod(self):
   mfl_id = 3
   results = self.sqlCountUsers(mfl_id=mfl_id)
   for result in results:
 print result[0], result[3]



 Keep in mind that a list is returned, not a dictionary.

 Knight
 [EMAIL PROTECTED]



 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )




___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Base ZClass propertysheet management

2000-10-06 Thread knight

Either I don't fully understand your question, or I'm misinterpreting what
you are trying to accomplish.

If you are subclassing A, calling it B, then it _already_ has the
properties of A when it was subclassed. However, if you have two instances
running, one A, and one subclass of A called B, then you can not access
that data in A from B since they are seperate instances.

Maybe you could clarify what you are trying to accomplish (example
maybe)...

Regards,

Knight
[EMAIL PROTECTED]

On Fri, 6 Oct 2000, Seb Bacon wrote:

 I've got a ZClass "A" that subclasses another ZClass "B".  I can use the
 default propertysheets/B/manage method to update B's properties; but how do
 I access the properties of A through the management interface?
 
 Many thanks
 
 Seb.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 knight
 Sent: 06 October 2000 10:05
 To: [EMAIL PROTECTED]
 Cc: Mark Twiddy
 Subject: Re: [Zope] external method database connection
 
 
 Also, you could always import the specific module for your database, and
 create a db connection, then execute() and fetch() directly. Although, if
 you are putting this in an external method, it would be wiser to use your
 existing ZSQL methods ;]
 
 Knight
 [EMAIL PROTECTED]
 
 On Fri, 6 Oct 2000, knight wrote:
 
 
   How do I get  a zope database connection from an enternal method?
 
  You can access your db using your existing ZSQL Methods by calling them
  from the namespace passed in, specifically self.
 
  Example:
 
  def myextmethod(self):
mfl_id = 3
results = self.sqlCountUsers(mfl_id=mfl_id)
for result in results:
  print result[0], result[3]
 
 
 
  Keep in mind that a list is returned, not a dictionary.
 
  Knight
  [EMAIL PROTECTED]
 
 
 
  ___
  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
   http://lists.zope.org/mailman/listinfo/zope-dev )
 
 
 
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] SiteAccess2, Zope 2.2.2, __no_before_traverse__

2000-10-06 Thread Olivier Deckmyn

Hi all,

What is the new way to apply the "__no_before_traverse__" using SiteAccess2
?

When I was younger, in SiteAccess1, I used to postfix my URL with this (ex :
http://mysite:8080/__no_before_traverse__/manage ), so that SiteRoot did not
apply ;  this enabling to play with the management interface on a broken
SiteAcces configuration...

What is the "nowadays way to to this (TM)" ?

Please help !

Thanx !

---
We are Micro$oft. You will be assimilated. Resistance is futile.



___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] variable

2000-10-06 Thread Joaldo Junior


It will be that somebody knows with I obtains to capture the last
register registered in cadastre in some 0 variable. 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SiteAccess2, Zope 2.2.2, __no_before_traverse__

2000-10-06 Thread Olivier Deckmyn

the new magic buzz word is : "_SUPPRESS_SITEROOT"

et voila !

Olivier.

- Original Message -
From: "Olivier Deckmyn" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 06, 2000 3:16 PM
Subject: [Zope] SiteAccess2, Zope 2.2.2, __no_before_traverse__


 Hi all,

 What is the new way to apply the "__no_before_traverse__" using
SiteAccess2
 ?

 When I was younger, in SiteAccess1, I used to postfix my URL with this (ex
:
 http://mysite:8080/__no_before_traverse__/manage ), so that SiteRoot did
not
 apply ;  this enabling to play with the management interface on a broken
 SiteAcces configuration...

 What is the "nowadays way to to this (TM)" ?

 Please help !

 Thanx !

 ---
 We are Micro$oft. You will be assimilated. Resistance is futile.



 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )




___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread Aitor Grajal Crespo



/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Aitor Grajal Crespo
Director General
e-mail: [EMAIL PROTECTED]

INETSYS, S.L.
ETSI Informática
Ctra. Colmenar, km. 15,500
28049 MADRID
SPAIN
Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 
66
http://www.inetsysonline.com

/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



Re: [Zope] LDAP won't work - yes I've applied the patch

2000-10-06 Thread Joachim Werner

I also don't get the LDAP Methods to work, even tried on 2.1.6.
The test tab works as usual, but when I use them in DTML I don't have success
either.

Can anybody who got them working please try to explain the syntax step by step?
The provided examples don't work for me.

That's what I do:

1. I have a working LDAP Connection

2. If I create an LDAP method ("ldapmethod") with the argument "sn" and the
filter "sn=dtml-var sn" I get the correct result with the test tab.

3. I try to use the method in DTML:

dtml-in expr="ldapmethod(sn='Werner')"
 dtml-var name="sn", dtml-var name="cn"br /
/dtml-in

This raises an

Error Type: KeyError
Error Value: sn

The strange thing is that the method itselfs seems to work but passes no data:
 
If I just use 

dtml-in expr="ldapmethod(sn='Werner')"
 .br /
/dtml-in

then the number of "." equals the number of entries the method should pass.
Also, dtml-var "ldapmethod(sn='Werner')" results in things like "[, ]", again
the number of empty elements is correct, they just shouldn't be empty ...

__

Iuveno - Smart Communication


Joachim Werner


_

Marie-Curie-Straße 6
85055 Ingolstadt

Tel.: +49 841/90 14-325 (Fax -322)
Mobil: +49 179/39 60 327
E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED]
WWW: www.iuveno.de/www.iuveno-net.de



___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Animated GIFs

2000-10-06 Thread Lars Heber

Hi there,

I've got a strange problem.

I want to upload an animated GIF to my Zope, but when I want to view it,

animation stops at the last frame instead of looping indefinitely.

When not uploaded to Zope, the animation works fine,
also, when I download the GIF by rightclick from a Zope site and view
it again outside Zope, it works perfectly!

What's going on here??? Any ideas?

PS.: The content_type is image/gif.
Do animGifs have another one? Just an idea...

Have a nice weekend :-)

Lars


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problems with animated GIFs

2000-10-06 Thread Lars Heber

Hi there,

I've got a strange problem with animated GIFs:

They work fine in any browser.

Uploading to Zope, viewing it.

Animation goes up to the last frame, but instead of looping
indefinitely, it stops at the last frame.

Downloading that file from Zope, viewing it in any browser outside Zope,
works perfectly!

What's going on here??? Any ideas?

P.S.: The content_type is image/gif. Do animGifs have another one? Just
an idea...

Have a nice weekend :-)

Lars


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread Ansgar W. Konermann

Hi all.

Correct me, if i am wrong, but AFAIK ZServer (coming with Zope)
is multi-threaded by default, whereas Apache/Zope uses PCGI or
FCGI and is *not* multi-treaded.

Best regards,

Ansgar W. Konermann
eMail: [EMAIL PROTECTED]
  WWW: http://www.inf.tu-dresden.de/~ak26

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] status of SOAP for Zope?

2000-10-06 Thread Brian Lloyd

 Okay, has anything been done at all?
 
 Where would I start? What's left to do?


Petru Paler contributed some preliminary work:

http://classic.zope.org:8080/Collector/1360/view

While I think that this is a good thing and I'm glad he did it, 
I think that experience has shown that just suddenly making 
*everything* available via a new protocol (xml-rpc, SOAP) is 
not really the right approach. There are a number of people 
who have recently voiced their (legitimate) concern that by 
default *practically everything* on their site is xml-rpc 
enabled - and they have no easy way to turn it off or make 
things selectively available.

This is a very important point - I think people would rather 
be able to implement SOAP services selectively rather than 
by One Big Switch that may expose just about anything. I would 
very much like to see a project started on dev.zope.org that 
starts off by drafting a "user manual" that describes how SOAP 
services would be implemented from the standpoint of a Zope 
developer. This would give us a good way to come to agreement 
without worrying about code just yet. 

Some attention should be given to how SOAP services get exposed by 
other systems at this point (they do *not* just suddenly expose 
every in-memory object to SOAP). We should also anticipate some 
of the work being done in "discoverability" of SOAP services in 
our draft (which I think will affect how you go about "defining"
a Web service. 


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 





___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread Brian Lloyd


 Concurrency Level:  25
 Time taken for tests:   1.807 seconds
 Complete requests:  1000
 Failed requests:137
(Connect: 0, Length: 137, Exceptions: 0)
 Non-2xx responses:  864
 Total transferred:  660974 bytes
 HTML transferred:   473471 bytes
 Requests per second:553.40
 Transfer rate:  365.79 kb/s received
 
 Linux
 
 Concurrency Level:  25
 Time taken for tests:   7.688 seconds
 Complete requests:  1000
 Failed requests:0
 Total transferred:  595000 bytes
 HTML transferred:   396000 bytes
 Requests per second:130.07
 Transfer rate:  77.39 kb/s received
 
 There's a big difference in the number of requests per second, 
 four times more in the  Windows machine. Anyone knows why? Does 
 it mean that Zope running in Windows is better than in Linux?

No - look at your results. Every request failed on the win32
box (and they all succeeded on linux). You have some sort of 
problem in your windows setup, and you'll always get higher
throughput for errors than you can for completed requests...


Brian Lloyd[EMAIL PROTECTED] 
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread Tom Deprez

Why do you test the one with ZServer and the other with Apache?
If you want correct results you've to test both with ZServer or both with
Zope behind Apache. Not?

Tom.

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ZSQL returns integer only

2000-10-06 Thread wmiller

The Oracle8i recordset I'm retrieving includes a few columns which 
are NUMBER(10,0) format which are milliseconds.  I would like to 
divide each by 1000 and use the ROUND function to return a result 
with one decimal place, e.g. ROUND(column1/1000, 1).

This works as expected in SQL*Plus.  It returns the results as a 
number formated to one decimal place.  ZSQL however returns only an 
integer.

Any suggestions on how to get the decimal places to show?


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Zope with Apache

2000-10-06 Thread James Howe

I asked this question a couple of months ago but received no response, so I 
figured I would ask it again to see if anyone can answer the question...

We are running Zope behind an Apache server. We've got things configured so 
that it mostly works. However, we noticed that the "breadcrumbs" list at 
the top of a workspace screen doesn't work correctly. For example, if I'm 
looking at the object /Foo/Bar/Baz, the list of items in the breadcrumbs 
might look like this:

DTMLDocument at / Foo / Bar / Baz

The links to Foo and Bar do not correctly take into account the extra item 
needed to tell Apache that the link goes to the Zope site. For example, the 
link to Foo needs to say something like

http://foo.bar.com/Zope/Foo/manage_workspace

instead of

http://foo.bar.com/Foo/manage_workspace

The tabs for the management screens work fine, however.

In looking at what is happening, I believe the problem exists because the 
links in the breadcrumbs line are relative links.  The link to "foo" would 
look like this:

a href="/foo/manage_workspace"Foo/a

instead of

a href="http://foo.bar.com/Zope/Foo/manage_workspace

When I open the page, the URL I give my browser is "foo.bar.com", but my 
Proxy settings in Apache redirect the request to 
"foo.bar.com:8080/Zope".  When my browser sees the relative path, it 
prepends the "foo.bar.com" instead of "foo.bar.com:8080/Zope" because it 
doesn't know any better.  I've managed to get around the problem by 
changing some code in the tabs_path_info method found in 
Management.py.  Basically I modifed the code to prepend "BASE0" to each of 
the items in the breadcrumbs list.  This way, I get absolute links instead 
of relative.  However, I'm wondering if there is just some additional 
configuration I need to do in Apache to fix this problem without modifying 
Zope itself.  Has anyone else encountered this and is this a bug in Zope, 
or is this simply a configuration issue that I need to resolve. If its a 
configuration issue, what would I need to change.   Any help would be 
appreciated.


Thanks.

James W. Howe   mailto:[EMAIL PROTECTED]
Allen Creek Software, Inc.  pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Base ZClass propertysheet management

2000-10-06 Thread Jim Washington

Hi, Seb

Go to the "Views" tab of the ProductItem ZClass.  You should be able to
add another tab referring to propertysheets/Picture/manage.  This has
worked for me in a similar situation.

-- Jim Washington

Seb Bacon wrote:
 
 Thanks,
 
 I'll rephrase it using my real life problem:
 
 I have a Picture class, which comprises image, title, description, etc.
 I also have a ProductItem class, which subclasses Picture to include a
 price, etc.
 
 So finally I have got a ProductItem class, which has a title, image, price,
 ...
 
 I can access properties inherited from the Picture no problem.  The problem
 is that the default management screen for editing the properties of
 ProductItem, propertysheets/Details/manage, only provides a means of editing
 the unique properties of ProductItem.  Is there a means of managing all the
 properties of a ZClass, including those of its parent class?  Or do I have
 to code my own management screen to do this?  And if so, what is the correct
 way of refering to these properties in DTML?

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] HTML-Code in variables

2000-10-06 Thread Lars Heber

Hi again,

this time I'd like to put some html-code in a variable via dtml-let.

Unfortunately, when I have the following:

dtml-let myText="'h1this is some html/h1'"...

results in the following string: "lt;h1gt;this is some htmllt;/h2gt;

What can I do against it???

TIA

Lars


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem with Z SQL Method associated with a class...

2000-10-06 Thread Frederic Quin

Hi all,


I associated a Z SQL Method to a class. This class MUST have attributes
but I obtain a Zope error on them. Did anyone know why and what I can do
???


Thanks
Fred


HERE IS THE ERROR 
Error

   Zope has encountered an error while publishing this
resource. See below for details. 

   Error Type: AttributeError
   Error Value: interests_founded



   Troubleshooting Suggestions

The URL may be incorrect. 
The parameters passed to this resource may be
incorrect. 
A resource that this resource relies on may be
encountering an error. 

   For more detailed information about the error, please
refer to the HTML source for this page. 

   If the error persists please contact the site maintainer.
Thank you for your patience. 


   Version 2.0.1 -- ©
2000 Profile For You -- Internal use only.

Traceback (innermost last):
  File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
214, in publish_module
  File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
179, in publish
  File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py,
line 202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
  File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
165, in publish
  File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: index_html)
  File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
102, in call_object
(Object: index_html)
  File /usr/local/Zope-2.1.6-linux2-x86/lib/python/OFS/DTMLDocument.py,
line 166, in __call__
(Object: index_html)
  File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: index_html)
  File /usr/local/Zope-2.1.6-linux2-x86/lib/python/OFS/DTMLMethod.py,
line 146, in __call__
(Object: dmProfileCompare)
  File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: dmProfileCompare)
  File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
line 691, in renderwob
(Object: sqlSiteProfileDetails( WEBSITEID=REQUEST.id,
PAGEID=REQUEST.pg ))
  File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
line 335, in eval
(Object: XMLToDict(REQUEST.pstor))
(Info: REQUEST)
  File string, line 0, in ?
  File /Zope/Extensions/IntranetToolKit.py, line 132, in XMLToDict
(Object: Profile4uXMLParser)
AttributeError: (see above)



HERE IS MY CLASS 
import string
import sys
from Shared.DC.xml import *
from Shared.DC.xml.pyexpat import *


class Profile4uXMLParser:

  # Necessary method to make the pyexpat module works

  def start_element(self, name, attrs):
  self.current_name = name

# Simple tag for which we just want to
store the attributes or the value situated just after the tag

  if ((name != 'interests') and (self.interests_founded == 0)):

 for i in range(len(attrs)):
if ((i % 2) == 0):
  self.datas[attrs[i]] = attrs[i+1]

# If we have a value just after the tag,
it will be associate with the name of the tag after

 if (name != 'profile'):
self.datas[name] = ''

# We find the tag interests so...

  elif (self.interests_founded == 0):
   self.interests_founded = 1

# Tag founded in the tag interests

  else:
tmp = {}
tmp['level'] = string.replace(name,'l','')

for i in range(len(attrs)):
if ((i % 2) == 0):
   tmp[attrs[i]] = attrs[i+1]

self.interests.append(tmp)



  # Necessary method to make the pyexpat module works

  def end_element(self, name):
# End of interests : we can find others
simple tags

  if (name == 'interests'):
 self.interests_founded = 0



  # Necessary method to make the pyexpat module works

  def char_data(self, data):
# Association of the value founded just
after the tag with the name of the tag

  if ((self.current_name != 'interest') and
(self.interests_founded == 0)):

# If the data need to be decoded...

 if (string.find(data,':') = 0):
tmp2 = {}
tmp = string.split(data,':')

for i in range(len(tmp)):
   if ((i % 3) == 0):
  tmp2[tmp[i]] = [tmp[i+1],tmp[i+2]]

self.datas[self.current_name] = tmp2

 

Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread Aitor Grajal Crespo

both of them go through the apache server, cos I have installed a proxy server (the 
reason is that windows is located on a different machine, and the proxy redirects to 
the windows zserver)
thanks.

*** REPLY SEPARATOR  ***

On 06/10/2000 at 17:27 Tom Deprez wrote:

Why do you test the one with ZServer and the other with Apache?
If you want correct results you've to test both with ZServer or both with
Zope behind Apache. Not?

Tom.


/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 
Aitor Grajal Crespo
Director General
e-mail: [EMAIL PROTECTED]

INETSYS, S.L.
ETSI Informática
Ctra. Colmenar, km. 15,500
28049 MADRID
SPAIN
Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 66
http://www.inetsysonline.com
 
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope with Apache

2000-10-06 Thread Steve Spicklemire


Hi James,

   Are you using SiteAccess? If not.. it would probably be worth a try.
It will take care of setting BASE0 etc to soemthing intelligent. 

-steve

 "James" == James Howe [EMAIL PROTECTED] writes:

James I asked this question a couple of months ago but received
James no response, so I figured I would ask it again to see if
James anyone can answer the question...

James We are running Zope behind an Apache server. We've got
James things configured so that it mostly works. However, we
James noticed that the "breadcrumbs" list at the top of a
James workspace screen doesn't work correctly. For example, if
James I'm looking at the object /Foo/Bar/Baz, the list of items
James in the breadcrumbs might look like this:

James DTMLDocument at / Foo / Bar / Baz

James The links to Foo and Bar do not correctly take into account
James the extra item needed to tell Apache that the link goes to
James the Zope site. For example, the link to Foo needs to say
James something like

James http://foo.bar.com/Zope/Foo/manage_workspace

James instead of

James http://foo.bar.com/Foo/manage_workspace

James The tabs for the management screens work fine, however.

James In looking at what is happening, I believe the problem
James exists because the links in the breadcrumbs line are
James relative links.  The link to "foo" would look like this:

James a href="/foo/manage_workspace"Foo/a

James instead of

James a href="http://foo.bar.com/Zope/Foo/manage_workspace

James When I open the page, the URL I give my browser is
James "foo.bar.com", but my Proxy settings in Apache redirect the
James request to "foo.bar.com:8080/Zope".  When my browser sees
James the relative path, it prepends the "foo.bar.com" instead of
James "foo.bar.com:8080/Zope" because it doesn't know any better.
James I've managed to get around the problem by changing some
James code in the tabs_path_info method found in Management.py.
James Basically I modifed the code to prepend "BASE0" to each of
James the items in the breadcrumbs list.  This way, I get
James absolute links instead of relative.  However, I'm wondering
James if there is just some additional configuration I need to do
James in Apache to fix this problem without modifying Zope
James itself.  Has anyone else encountered this and is this a bug
James in Zope, or is this simply a configuration issue that I
James need to resolve. If its a configuration issue, what would I
James need to change.  Any help would be appreciated.


James Thanks.

James James W. Howe mailto:[EMAIL PROTECTED] Allen Creek
James Software, Inc.  pgpkey: http://ic.net/~jwh/pgpkey.html Ann
James Arbor, MI 48103


James ___ Zope
James maillist - [EMAIL PROTECTED]
James http://lists.zope.org/mailman/listinfo/zope ** No cross
James posts or HTML encoding!  ** (Related lists -
James http://lists.zope.org/mailman/listinfo/zope-announce
James http://lists.zope.org/mailman/listinfo/zope-dev )


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SiteAccess2, Zope 2.2.2, __no_before_traverse__

2000-10-06 Thread Simon Michael

You need to set an environment variable and restart zope, see the
siteaccess2 documentation on zope.org for more details.

-Simon

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Can Free Software Manage Your Web Site? http://www.inside.com/

2000-10-06 Thread Steven D. Majewski




Inside magazine http://www.inside.com/ has a feature on Zope:
   "Can Free Software Manage Your Web Site?"




---|  Steven D. Majewski   (804-982-0831)  [EMAIL PROTECTED]  |---
---|  Department of Molecular Physiology and Biological Physics  |---
---|  University of Virginia Health Sciences Center  |---
---|  P.O. Box 10011Charlottesville, VA  22906-0011  |---
"All operating systems want to be unix, 
 All programming languages want to be lisp." 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ZopeLDAP 1.0b4 breaks the root directory security tab

2000-10-06 Thread Corey Zimmet

Since installing ZopeLDAP 1.0b4, I get the following error when trying to
access the security tab at the root directory:
Zope Error

   Zope has encountered an error while publishing this resource.

   Error Type: TypeError
   Error Value: string member test needs char left operand



   Troubleshooting Suggestions

   The URL may be incorrect.
   The parameters passed to this resource may be incorrect.
   A resource that this resource relies on may be
encountering an error.

   For more detailed information about the error, please refer
to the HTML source for this page.

   If the error persists please contact the site maintainer.
Thank you for your patience.




Traceback (innermost last):
  File /usr/local/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 222,
in publish_module
  File /usr/local/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 187,
in publish
  File /usr/local/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /usr/local/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 171,
in publish
  File /usr/local/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: manage_access)
  File /usr/local/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 112,
in call_object
(Object: manage_access)
  File /usr/local/Zope-2.2.2-src/lib/python/AccessControl/Role.py, line 255,
in manage_access
(Object: ApplicationDefaultPermissions)
  File /usr/local/Zope-2.2.2-src/lib/python/App/special_dtml.py, line 120,
in __call__
(Object: access)
(Info: /usr/local/Zope/lib/python/AccessControl/access.dtml)
  File /usr/local/Zope-2.2.2-src/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
(Object: access)
  File /usr/local/Zope-2.2.2-src/lib/python/DocumentTemplate/DT_With.py,
line 146, in render
(Object: _.namespace(valid_roles=valid_roles()))
  File /usr/local/Zope-2.2.2-src/lib/python/DocumentTemplate/DT_In.py, line
630, in renderwob
(Object: permission_settings)
  File /usr/local/Zope-2.2.2-src/lib/python/AccessControl/Role.py, line 182,
in permission_settings
(Object: ApplicationDefaultPermissions)
  File /usr/local/Zope-2.2.2-src/lib/python/AccessControl/Role.py, line 177,
in lambda
TypeError: (see above)


Removing the product returns the system back to normal.  Does anyone know
what I can patch to remove this?

Thanks,
Corey


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Fwd: Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread Diego Rodrigo Neufert

Are you using Zope behind apache under Linux? Or it's a direct request to
ZServer? As I can see the files are not the same, try to bench exactly the same
file...


On Fri, 06 Oct 2000, you wrote:
 
 Hi, I have a problem with Zope speed.
 I've done benchmarking in two machines, with the same hardware. (K7 700 MHz, 128 MB, 
20GB HD)
 
 Windows machine : W 2000 Professional with Zope for Windows
 Linux machine : Linux RedHat 6.1, with Apache Server 1.3.12 and Zope 2.2.1
 
 Windows 2000---
 
 Server Hostname:windows
 Server Port:80
 
 Document Path:  /index_html
 Document Length:486 bytes
 
 Concurrency Level:  25
 Time taken for tests:   1.807 seconds
 Complete requests:  1000
 Failed requests:137
(Connect: 0, Length: 137, Exceptions: 0)
 Non-2xx responses:  864
 Total transferred:  660974 bytes
 HTML transferred:   473471 bytes
 Requests per second:553.40
 Transfer rate:  365.79 kb/s received
 
 Connnection Times (ms)
   min   avg   max
 Connect:0 010
 Processing:1142   356
 Total: 1142   366
 
 ---
 Linux---
 
 Server Hostname:linux
 Server Port:8088
 
 Document Path:  /Contactos
 Document Length:396 bytes
 
 Concurrency Level:  25
 Time taken for tests:   7.688 seconds
 Complete requests:  1000
 Failed requests:0
 Total transferred:  595000 bytes
 HTML transferred:   396000 bytes
 Requests per second:130.07
 Transfer rate:  77.39 kb/s received
 
 Connnection Times (ms)
   min   avg   max
 Connect:0 8   224
 Processing:   102   18154
 Total:102   189   278
 
 
---
 
 There's a big difference in the number of requests per second, four times more in 
the Windows machine.
 Anyone knows why? Does it mean that Zope running in Windows is better than in Linux?
 /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 
 Aitor Grajal Crespo
 Director General
 e-mail: [EMAIL PROTECTED]
 
 INETSYS, S.L.
 ETSI Informática
 Ctra. Colmenar, km. 15,500
 28049 MADRID
 SPAIN
 Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 66
 http://www.inetsysonline.com
 
 /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 
 

-- 
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
(email) ([EMAIL PROTECTED])
(curitiba) (pr)

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Data.fs has invalid transaction header

2000-10-06 Thread Nestor A. Diaz L.

Hi, 

I was working with zope and try to use the "-D" flag within it but a
terrible thing happend when i was restarting the server:

Starting ZopeTraceback (innermost last):
  File "/usr/sbin/zope-z2", line 558, in ?
exec "import "+MODULE in {}
  File "string", line 1, in ?
  File "/usr/lib/zope/lib/python/Zope/__init__.py", line 110, in ?
DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName)
  File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 301, in
__init__
self._pos, self._oid, tid = read_index(
  File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 1556, in
read_index
panic('%s has invalid transaction header at %s', name, pos)
  File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 218, in panic
raise CorruptedTransactionError, message
ZODB.FileStorage.CorruptedTransactionError: /var/lib/zope/var/Data.fs has
invalid transaction header at 46034131
... failed.

The problem is that it never start again :'''(  so i'am nervous only
thinking that i can loose all of my work, there is any way to fix that?

Thanks,

--
Nestor A. Diaz
Ingeniero de Desarrollo
Engendro.com - Comercio Electronico sobre Linux
Email: [EMAIL PROTECTED] - WWW: http://www.engendro.com


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Re: Data.fs has invalid transaction header

2000-10-06 Thread Nestor A. Diaz L.

I forgot:

Zope version 2.2.0-1 (On a Debian Potato i386)

Thanks,

Nestor A. Diaz
Ingeniero de Desarrollo
Engendro.com - Comercio Electronico sobre Linux
Email: [EMAIL PROTECTED] - WWW: http://www.engendro.com


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Java equivalent to WorldPilot?

2000-10-06 Thread Hung Jung Lu

Hi,

Does anyone know any Java software (commercial or not) that is equivalent to 
WorldPilot?

regards,

Hung Jung

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] HTTP user authentication in Python

2000-10-06 Thread Hung Jung Lu

Hi,

Where can I find out more information on HTTP user authentication? I have 
seen the RFC before, but it's a bit too technical to follow. I think Python 
does not include the authentication/cookie handling part probably because 
out of concern about abuses. :)

Does anyone know where I can find more info on the authentication and cookie 
protocol stuff? Is there any Python module already written to handle these 
things?

The idea is to be able to fetch external webpages automatically using 
Python, including providing the necessary auth and cookie info. Of course 
this opens up a whole can of security worms, but heck, it's open information 
and someone must already have written something in Python already.

regards,

Hung Jung
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Newbie question : ZopeTime permissions

2000-10-06 Thread Aaron Straup Cope

Hi,

My name is Aaron.

I am trying to set up zope with (atleast) three roles : manager, admin,
user.

I'd like to give the last two the bare minimum Security permissions
possible and adding them as needed later on. 

My problem is that I can't seem to figure out, specifically, which
permissions to give a user that will allow them to read ZopeTime().

(see below)

For the admin user, I have set the Access content information and View *
options globally. I've tried guessing at some others, but there are alot
of possible combinations to try so I thought maybe I would just ask.

Related, is there a detailed description of the default Security
settings? I've checked the mailing lists and the Zope docs and if it's
there, I guess I missed it.

Thanks,

dtml-call "REQUEST.set('ts', ZopeTime())"
dtml-call "REQUEST.set('foo',_.str(_.int(ts)))"

dtml-var foo

Traceback (innermost last):
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: test)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: test)
  File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
__call__
(Object: test)
  File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: test)
  File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line
337, in eval
(Object: REQUEST.set('ts', ZopeTime()))
(Info: REQUEST)
  File string, line 0, in ?
NameError: (see above)


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] one external method calling another; what possibilities?

2000-10-06 Thread Fred Yankowski

I'm using some example code that defines an External Method to process
a form.  That External Method calls another utility function to log
some data.  I'm not quite sure what choices I have for creating that
utility function, so I created another External Method for it.  Both
functions are in the same Python source file in the Extensions folder.

Anyway, the main external function calls the utility function like this:

self.function2(arg1=valuex, arg2=valuey)

I expected that function2 would have to be defined like this:

def function2(self, **kwargs)

but it turned out that that fails at runtime with a complaint about a
mismatch between the number of arguments sent and expected (0 and 1,
respectively).  The following does work:

def function2(**kwargs)

So, why isn't function2 called as a method function?

Was there some better way I could have implemented function2, rather
than as an external method?

Where is reference documentation on External Methods?  I couldn't find
anything other than a very cursory overview in one of the PDF'ed
documents (I forget which).

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Zope, Threads and Signals

2000-10-06 Thread Wilkinson Charlie E
Title: Zope, Threads and Signals





It all began when I was a small child, but I'll skip ahead a bit Last night I wrote a network client class with plans to use it as an External Method in Zope. Works great from the command line. My first real Python program. Mom and Dad were so proud! However, when I plugged it into Zope and tried to call it from a document method, I got this:

 Error Type: ValueError
 Error Value: signal only works in main thread


Gack!! Um... Silly me, but I wrote all this code to use sigalarm and blocking I/O. Anyone know how I can overcome this great adversity, aside from rewriting it all to use non-blocking I/O? Know of any good examples of External Method network clients you could point me at? Or would making it a Zope Product somehow fix everything? (Sorry, I had to ask...)

-cw-


-- 
Charlie Wilkinson
TRIS Development Systems Administrator 
IS:SD:CT:CC:TD
Phone: 202-283-3241 
MSMail: [EMAIL PROTECTED]
SMTP: [EMAIL PROTECTED]
Home: [EMAIL PROTECTED] 
This message constructed from 90% post-consumer electrons.





Re: [Zope] Zope with Apache

2000-10-06 Thread Evan Simpson

From: James Howe [EMAIL PROTECTED]
 We are running Zope behind an Apache server. We've got things configured so
 that it mostly works. However, we noticed that the "breadcrumbs" list at
 the top of a workspace screen doesn't work correctly.

This was broken with respect to virtual hosting, as well, and the fix for that in the 
CVS trunk may
also take care of what you're seeing.  Should be in Zope 2.3 (soon, I hope).

Cheers,

Evan @ digicool  4-am


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread Peter Bengtsson

Don't you all Zope mailinglist participants think that Aitor Grajal owe us all an 
excuse in the form of a NEW TEST with the Win32 ZServer running properly?
;-)
Especially to all Linux supporters for the badwill of the emails title.

I would really be interested in its correct results.

Cheers everyone

  Failed requests:137
 
 No - look at your results. Every request failed on the win32
 box (and they all succeeded on linux). You have some sort of 
 problem in your windows setup, and you'll always get higher
 throughput for errors than you can for completed requests...
 
 
 Brian Lloyd[EMAIL PROTECTED] 
 Software Engineer  540.371.6909  
 Digital Creations  http://www.digicool.com 
 
 
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )
 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread Ansgar W. Konermann

Hi all!

Peter Bengtsson wrote:
 
 Don't you all Zope mailinglist participants think that Aitor Grajal owe us all an 
excuse in the form of a NEW TEST with the Win32 ZServer running properly?

Definitely, yea!

 I would really be interested in its correct results.

Me too. :-)

Cheerio!

Ansgar W. Konermann
eMail: [EMAIL PROTECTED]
  WWW: http://www.inf.tu-dresden.de/~ak26

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Java equivalent to WorldPilot?

2000-10-06 Thread Kapil Thangavelu

Hung Jung Lu wrote:
 
 Hi,
 
 Does anyone know any Java software (commercial or not) that is equivalent to
 WorldPilot?
 
 regards,
 
 Hung Jung


take a look at the java.apache.org projects.

relevant ones james (mailet server)
jetspeed (icalendar functionality and content feeds in a portal format)

and also

javawebmail.sourceforge.net

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread knight

On Fri, 6 Oct 2000, Tom Deprez wrote:

 Why do you test the one with ZServer and the other with Apache?
 If you want correct results you've to test both with ZServer or both with
 Zope behind Apache. Not?
 
 Tom.

Exactly, or atleast both ZServer. You can definately attribute some
latency due to the Apache integration... (minimal, but still needs to be
noted!)

Knight
[EMAIL PROTECTED]


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread knight

To get ACCURATE timings, you need to create the situations almost
identical, other than the operating system.

So, that means:

  1) Windows and Linux tunings should be similar; are you running extra
daemons on the Linux box that Windows isn't (smtp, ftp, etc)?
  2) The server architecture should be the same (identical hardware)
  3) The software architecture should be the same; are you running
both Zope and Apache on each machine, or are you spliting these services
up somehow. A server with Apache+Zope, and then another server with just
Zope will NOT match up.

Just keep that in mind...

Knight
[EMAIL PROTECTED]

On Fri, 6 Oct 2000, Aitor Grajal Crespo wrote:

 both of them go through the apache server, cos I have installed a proxy server (the 
reason is that windows is located on a different machine, and the proxy redirects to 
the windows zserver)
 thanks.
 
 *** REPLY SEPARATOR  ***
 
 On 06/10/2000 at 17:27 Tom Deprez wrote:
 
 Why do you test the one with ZServer and the other with Apache?
 If you want correct results you've to test both with ZServer or both with
 Zope behind Apache. Not?
 
 Tom.
 
 
 /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
  
 Aitor Grajal Crespo
 Director General
 e-mail: [EMAIL PROTECTED]
 
 INETSYS, S.L.
 ETSI Informática
 Ctra. Colmenar, km. 15,500
 28049 MADRID
 SPAIN
 Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 66
 http://www.inetsysonline.com
  
 /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Newbie question : ZopeTime permissions

2000-10-06 Thread knight

Aaron, you left out the error. What was it...

On Fri, 6 Oct 2000, Aaron Straup Cope wrote:

 Hi,
 
 My name is Aaron.
 
 I am trying to set up zope with (atleast) three roles : manager, admin,
 user.
 
 I'd like to give the last two the bare minimum Security permissions
 possible and adding them as needed later on. 
 
 My problem is that I can't seem to figure out, specifically, which
 permissions to give a user that will allow them to read ZopeTime().
 
 (see below)
 
 For the admin user, I have set the Access content information and View *
 options globally. I've tried guessing at some others, but there are alot
 of possible combinations to try so I thought maybe I would just ask.
 
 Related, is there a detailed description of the default Security
 settings? I've checked the mailing lists and the Zope docs and if it's
 there, I guess I missed it.
 
 Thanks,
 
 dtml-call "REQUEST.set('ts', ZopeTime())"
 dtml-call "REQUEST.set('foo',_.str(_.int(ts)))"
 
 dtml-var foo
 
 Traceback (innermost last):
   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
 publish_module
   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
 publish
   File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: Traversable)
   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
 publish
   File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
 mapply
 (Object: test)
   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
 call_object
 (Object: test)
   File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
 __call__
 (Object: test)
   File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
 528, in __call__
 (Object: test)
   File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line
 337, in eval
 (Object: REQUEST.set('ts', ZopeTime()))
 (Info: REQUEST)
   File string, line 0, in ?
 NameError: (see above)
 
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] one external method calling another; what possibilities?

2000-10-06 Thread knight

External methods are not extensions to any Zope classes. External methods
allow you to incorporate external functionality from Zope, as you already
know. You can define classes that are referenced in your functions though.

Keep in mind, that the external method that you created that gets called
is just a function. By default, self gets passed in, so be sure its in
your function definition. When calling _another_ function from your
external method, self does NOT get passed, since your external method does
not belong to a specific class instance... i.e. there's no container to
pass as self. So you have to pass self explicitly.

Example:

def myextmethod(self, somevar):
  something()
  morethings()

  myotherfunc(self, somevar):

def myotherfunc(self, somevar):
  print somevar

If this doesn't help, please clarify what exactly you are trying to do...

Knight
[EMAIL PROTECTED]

On Fri, 6 Oct 2000, Fred Yankowski wrote:

 I'm using some example code that defines an External Method to process
 a form.  That External Method calls another utility function to log
 some data.  I'm not quite sure what choices I have for creating that
 utility function, so I created another External Method for it.  Both
 functions are in the same Python source file in the Extensions folder.
 
 Anyway, the main external function calls the utility function like this:
 
   self.function2(arg1=valuex, arg2=valuey)
 
 I expected that function2 would have to be defined like this:
 
   def function2(self, **kwargs)
 
 but it turned out that that fails at runtime with a complaint about a
 mismatch between the number of arguments sent and expected (0 and 1,
 respectively).  The following does work:
 
   def function2(**kwargs)
 
 So, why isn't function2 called as a method function?
 
 Was there some better way I could have implemented function2, rather
 than as an external method?
 
 Where is reference documentation on External Methods?  I couldn't find
 anything other than a very cursory overview in one of the PDF'ed
 documents (I forget which).
 
 -- 
 Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
 Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope, Threads and Signals

2000-10-06 Thread knight

cw,

Are you spawning additional threads by chance? Or just the threads that
Zope creates?

Knight
[EMAIL PROTECTED]
On Fri, 6 Oct 2000, Wilkinson Charlie E wrote:

 It all began when I was a small child, but I'll skip ahead a bit  Last
 night I wrote a network client class with plans to use it as an External
 Method in Zope.  Works great from the command line.  My first real Python
 program.  Mom and Dad were so proud!  However, when I plugged it into Zope
 and tried to call it from a document method, I got this:
 
   Error Type: ValueError
   Error Value: signal only works in main thread
 
 Gack!!  Um...  Silly me, but I wrote all this code to use sigalarm and
 blocking I/O.  Anyone know how I can overcome this great adversity, aside
 from rewriting it all to use non-blocking I/O?  Know of any good examples of
 External Method network clients you could point me at?  Or would making it a
 Zope Product somehow fix everything?  (Sorry, I had to ask...)
 
 -cw-
 
 -- 
 Charlie Wilkinson
 TRIS Development Systems Administrator 
 IS:SD:CT:CC:TD
 Phone: 202-283-3241 
 MSMail:   [EMAIL PROTECTED]
 SMTP:  [EMAIL PROTECTED]
 Home:  [EMAIL PROTECTED] 
 This message constructed from 90% post-consumer electrons.
 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-06 Thread knight

 Don't you all Zope mailinglist participants think that Aitor Grajal owe us all an 
excuse in the form of a NEW TEST with the Win32 ZServer running properly?
 ;-)
 Especially to all Linux supporters for the badwill of the emails title.
 
 I would really be interested in its correct results.
 
 Cheers everyone

Especially with all this press I've seen in publications over the last
month or two regarding Windows 2000 is outperforming *nix. (over my dead
_dead_ body)

Knight

 
   Failed requests:137
  
  No - look at your results. Every request failed on the win32
  box (and they all succeeded on linux). You have some sort of 
  problem in your windows setup, and you'll always get higher
  throughput for errors than you can for completed requests...
  
  
  Brian Lloyd[EMAIL PROTECTED] 
  Software Engineer  540.371.6909  
  Digital Creations  http://www.digicool.com 
  
  
  
  ___
  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
   http://lists.zope.org/mailman/listinfo/zope-dev )
  
 
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Newbie question : ZopeTime permissions

2000-10-06 Thread Aaron Straup Cope

Doh! Sorry.

Error Type: KeyError
Error Value: ZopeTime

On Fri, 6 Oct 2000, knight wrote:

 Aaron, you left out the error. What was it...
 
 On Fri, 6 Oct 2000, Aaron Straup Cope wrote:
 
  Hi,
  
  My name is Aaron.
  
  I am trying to set up zope with (atleast) three roles : manager, admin,
  user.
  
  I'd like to give the last two the bare minimum Security permissions
  possible and adding them as needed later on. 
  
  My problem is that I can't seem to figure out, specifically, which
  permissions to give a user that will allow them to read ZopeTime().
  
  (see below)
  
  For the admin user, I have set the Access content information and View *
  options globally. I've tried guessing at some others, but there are alot
  of possible combinations to try so I thought maybe I would just ask.
  
  Related, is there a detailed description of the default Security
  settings? I've checked the mailing lists and the Zope docs and if it's
  there, I guess I missed it.
  
  Thanks,
  
  dtml-call "REQUEST.set('ts', ZopeTime())"
  dtml-call "REQUEST.set('foo',_.str(_.int(ts)))"
  
  dtml-var foo
  
  Traceback (innermost last):
File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
  publish_module
File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
  publish
File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
  zpublisher_exception_hook
  (Object: Traversable)
File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
  publish
File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
  mapply
  (Object: test)
File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
  call_object
  (Object: test)
File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
  __call__
  (Object: test)
File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
  528, in __call__
  (Object: test)
File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line
  337, in eval
  (Object: REQUEST.set('ts', ZopeTime()))
  (Info: REQUEST)
File string, line 0, in ?
  NameError: (see above)
  
  
  ___
  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
   http://lists.zope.org/mailman/listinfo/zope-dev )
  
  
 
 


___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] xmldocument and properties

2000-10-06 Thread matt

Does anyone have a simple example of creating and setting the properties of a
node within an xml document, using xmldocument and external methods.

thanks
Matt

___
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
 http://lists.zope.org/mailman/listinfo/zope-dev )