Re: [Zope-dev] why does my externalmethod generate a ZODB transaction

2000-07-06 Thread Joachim Schmitz

Hi,

answering to myself, cause nobody else could find the reason in the code I
provided, because I didn't include the real culprit. Here is the very much
abreviatet version, which also generates a transaction:

def workform(self,REQUEST):
"Die Masken EinAusgabe"
self.form=REQUEST.form-- this does it
return "this generated a transaction"

So don't modify the "self" of an external method.


Mit freundlichen Grüßen

Joachim Schmitz  

  
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven  
Telefon: +49-2464-8851, FAX: +49-2464-905163



___
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] ExtensionClass and __radd__()?

2000-07-06 Thread Pavlos Christoforou

On Wed, 5 Jul 2000, Greg Ward wrote:

 
 Well, it's a nice theory.  It doesn't explain why '__add__()' works for
 ExtensionClass while '__radd__()' does not; perhaps ExtensionClass
 implements that much of Python's class semantics, but doesn't go as far
 as '__radd__()'.
 

A quick note which you probably already know:

grep add ExtensionClass.c gives:

static PyObject *py__add__, *py__sub__, *py__mul__, *py__div__,
  INIT_PY_NAME(__add__); BINOP(add,Add)
  FILLENTRY(nm-nb, add, add, METH_VARARGS, "Add to another");
  FILLENTRY(sm-sq, concat, add, METH_VARARGS,
  SET_SPECIAL(add,add); subclass_add(PyObject *self, PyObject *v)
  UNLESS(m=subclass_getspecial(self,py__add__)) return NULL;
   AsCMethod(m)-meth==(PyCFunction)add_by_name
ASSIGN(m,AsCMethod(m)-type-tp_as_number-nb_add(self,v));
  (binaryfunc)subclass_add, /*nb_add*/
(binaryfunc)subclass_add, /*sq_concat*/
  return; /* we added a reference; don't delete now */ 

whereas grep radd ExtensionClass.c returns nothing


Pavlos


___
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] SQL-Output

2000-07-06 Thread Andre Schubert

Hi,

i have a little problem on outputting data from an SQL-Query. The
Problem is, that the user should select his own Fieldnames
he want to show for output. The input form sends a request to the output
form, with  a query-string and some other stuff and a key named ausgabe.

The key ausgabe is a sequence with all Fielnames the user clicked. Now
in the outputform i have a sequence looking for the search-query. If
sequence starts it prints a table-head with all selected field-names out
of the second sequence ausgabe. The problem is: my table in the
relational database has a column named 'Name'. If i write in the
sequence at bottom dtml-var Name then the result is the the value of
Namne is printed. But if i write dtml-var sequence-item and the
current item is Name then Name is printed out and not the Value of Name
from the DB.
Could anybody help me.

as

P.S.: sorry for my bad english


dtml-in Suche size=10 start=query_start

   dtml-if sequence-start

 table width="560" border="1" bgcolor="#ff"
tr bgcolor="#ff"
  th width="30%"Name/th
  dtml-in "REQUEST.ausgabe"
   thdtml-var sequence-itemnbsp;/th
  /dtml-in

/tr

   /dtml-if sequence-start

tr
 td class="feld"a href="homepage?Firmennr=dtml-var
FirmennrSUBMIT=Query Start"dtml-var Name null=""/anbsp;/td
 dtml-in "REQUEST.ausgabe"
  td class="feld"dtml-var sequence-item null=""nbsp;/td
 /dtml-in
/tr

   dtml-if sequence-end

  /table

   /dtml-if sequence-end
p


/dtml-in



___
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] why does my externalmethod generate a ZODB transaction

2000-07-06 Thread Chris McDonough

Any method called directly through the web (e.g. like this one, which I
assume is through an HTTP POST) will be bounded in a transaction.  Why
would you not want this to happen?

 -Original Message-
 From: Joachim Schmitz [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 06, 2000 3:30 AM
 To: zope-dev
 Subject: Re: [Zope-dev] why does my externalmethod generate a ZODB
 transaction
 
 
 Hi,
 
 answering to myself, cause nobody else could find the reason 
 in the code I
 provided, because I didn't include the real culprit. Here is 
 the very much
 abreviatet version, which also generates a transaction:
 
 def workform(self,REQUEST):
 "Die Masken EinAusgabe"
 self.form=REQUEST.form-- this does it
 return "this generated a transaction"
 
 So don't modify the "self" of an external method.
 
 
 Mit freundlichen Grüßen
 
 Joachim Schmitz  
 
   
 AixtraWare, Ing. Büro für Internetanwendungen
 Hüsgenstr. 33a, D-52457 Aldenhoven  
 Telefon: +49-2464-8851, FAX: +49-2464-905163
 
 
 
 ___
 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 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] ExtensionClass and __radd__()?

2000-07-06 Thread Greg Ward

On 06 July 2000, Pavlos Christoforou said:
 A quick note which you probably already know:
 
 grep add ExtensionClass.c gives:
[...lots...]
 whereas grep radd ExtensionClass.c returns nothing

Yep, did the same myself shortly after posting.  It's not really clear
what 'py__add__' is and how it works, though, so it's not obvious if
'py__radd__' is the right thing to add, and if so how to add it.

Greg


If it's just a matter
of adding radd (and rsub, rmul, and rdiv) in all those places
-- 
Greg Ward - software developer[EMAIL PROTECTED]
MEMS Exchange / CNRI   voice: +1-703-262-5376
Reston, Virginia, USAfax: +1-703-262-5367

___
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] why does my externalmethod generate a ZODB transaction

2000-07-06 Thread Martijn Pieters

On Thu, Jul 06, 2000 at 09:29:53AM +0200, Joachim Schmitz wrote:
 answering to myself, cause nobody else could find the reason in the code I
 provided, because I didn't include the real culprit. Here is the very much
 abreviatet version, which also generates a transaction:
 
 def workform(self,REQUEST):
 "Die Masken EinAusgabe"
 self.form=REQUEST.form-- this does it
 return "this generated a transaction"
 
 So don't modify the "self" of an external method.

self is the object this method is called on. So if this is method 'foo' in
Folder 'bar', called with http://www.spamandeggs.com/bar/foo, self is bar. The
EM is a method of the container object.

Indeed, setting self.form will store REQUEST.form in that object attribute,
causing Zope to commit a new version of the object. After all, you made a
change to it!

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
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-Dev] ExtensionClass and __radd__()?

2000-07-06 Thread Jim Fulton

Greg Ward wrote:
 
 Hi all --
 
 looks like ExtensionClass doesn't recognize/implement the '__radd__()'
 protocol.  Speculation below; first, a demonstration.  Normal case: a
 regular class Number that knows how to add itself to other number-like
 things:

(demonstration snipped)

 Speculation time: I'm guessing that this is similar to the problem with
 'isinstance()' and ExtensionClass that I found several months ago, which
 was heroically debugged by Barry.  To recap, it's a mutual
 finger-pointing bug: Python (Guido) can claim that it's up to
 ExtensionClass (Jim) to emulate the full semantics of Python
 classes/instances, but ExtensionClass can claim that Python should be
 more relaxed in what it accepts as a "class object" or "instance
 object".
 
 I think the relevant code in Python is in Objects/abstract.c,
 specifically 'PyNumber_Add()' and the BINOP macro:
 
 #define BINOP(v, w, opname, ropname, thisfunc) \
 if (PyInstance_Check(v) || PyInstance_Check(w)) \
 return PyInstance_DoBinOp(v, w, opname, ropname, thisfunc)
 
 [...]
 PyNumber_Add(v, w)
 PyObject *v, *w;
 {
 PySequenceMethods *m;
 
 BINOP(v, w, "__add__", "__radd__", PyNumber_Add);
 [...]
 
 My guess is that PyInstance_Check() returns false for ExtensionClass
 instances.  Two possible fixes: loosen up PyInstance_Check(), or loosen
 up BINOP.
 
 Well, it's a nice theory.  It doesn't explain why '__add__()' works for
 ExtensionClass while '__radd__()' does not; perhaps ExtensionClass
 implements that much of Python's class semantics, but doesn't go as far
 as '__radd__()'.

I'd love to see __radd__ added. ;) I don't remember why it's not there.
Maybe I was just lazy.  It may be fairly hard to add. I haven't looked
in quite a while. As anyone whos looked at ExtensionClass sources may
be able to tell, ExtensionClass has to play quite a few tricks to:

- Try to sanely bridge the quite different semantics of Python
  "types" and "classes" (e.g. there's no radd for "types").

- Try to overcome the fact that the interpreter special-cases 
  InstanceType and ClassType pretty liberally. To (try to and
  mostly succeed to) provide instance semantics I have to do 
  alot of weird indirection. This is especially hard for 
  numeric things.

  Your analysis of the code demonstrates this issue. ExtensionClass
  instances are not of type InstanceType. In fact, each ExtensionClass
  is a separate type and instances of different ExtensionClasses have
  different types.

  Note that I just got around to responding to your earlier 
  post "Comparison inconsistency with ExtensionClass".
  This has a similar root cause: the special-case treatment
  of InstanceType.

I think that the *real* solution to this problem is to get rid
of ExtensionClass. ;) To do this, I need to get the features
I have in ExtensionClass into Python. I guess there's some hope
for that in Python 3K (love that name :).

In the mean time, I don't have time to fix the radd problem
myself, but would be willing to advise someone who wanted
to try to take it on, especially if we could work out some
phone or face-to-face sessions.

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] why does an error in my externalmethod ...

2000-07-06 Thread Joachim Schmitz


make the folder from which it was invoked inaccessable ?

continuing work on my external, I removed all modifications of self, so no
transactions or better modifications of the ZODB took place. During the
development cycle: editing the external methods, testing it through
calling it through the browser, after editing the method the call of
.../Movies/testForm resulted in a not found error.
also I cannot enter the folder "Movies", if I click on it in the
managementscreen, I also get the not found error. There is no transaction
to undo, I restarted Zope no luck, I tried to delete the folder and get
the error:

Error Type: SystemError
Error Value: Failed to import class setrecord from module __main__

(Object: manage_delObjects)
File /usr/local/Zope-2.1.4/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: manage_delObjects)
File /usr/local/Zope-2.1.4/lib/python/OFS/ObjectManager.py, line 395, in
manage_delObjects
(Object: ElementWithAttributes)
File /usr/local/Zope-2.1.4/lib/python/OFS/ObjectManager.py, line 267, in
_delObject
(Object: ElementWithAttributes)
File /usr/local/Zope-2.1.4/lib/python/ZODB/Connection.py, line 396, in 
setstate
SystemError: (see above)
 
The class setrecord is in my external-method. I luckily had packed zodb
shortly before that, and it is just a testserver. So I copied the
Data.fs.old to Data.fs. Till now I could not reproduce the error. I still
have the corrupted Data.fs. 

But I had that occure before, after making an error in the external
method, the calling folder was not accessible anymore. But there I also
had modified self, so I had a transaction which I could "undo".  


Mit freundlichen Grüßen

Joachim Schmitz  

  
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven  
Telefon: +49-2464-8851, FAX: +49-2464-905163



___
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] Request for amplification on new Product permissions API.

2000-07-06 Thread R. David Murray

OK, I read Brian's excellent HowTo on the 2.2 Product permissions API,
but it unfortunately doesn't give me the answer to my current
2.2 problem (or if it does there's something else I don't know that
is preventing me from figuring it out).

I'm trying to update EMarket to work under 2.2.  EMarket has a
shopper object.  A shopper's current set of potential purchases
is stored on the shopper object in a 'basket' attribute.  What
gets assigned to this attribute is an instance of a 'Basket' class.
It inherits from Persistent and Acquisition.implicit.  (Shopper,
among other things, inherits from OFS.SimpleItem, by the way.)

So, when I access the page that displays the current shopping cart,
under 2.2 I get an unauthorized error when the dtml code
attemps to access an attribute of the basket object.

So, what do I need to do to allow controlled access to this object?
I understand that Shopper, inheriting from SimpleItem, already has
the access to unprotected subobjects flag.  And I'd rather protect
the object correctly, anyway grin.  I tried adding an ac_permissions
structure to the class, giving View permission to the attribute
that is throwing the unauthorized error, but that doesn't seem to
have changed the behavior.  Adding the access to subobjects flag
also didn't do anything.  I created a new shopper/basket just in
case the changes don't affect existing objects, but still got the
same unauthorized error.

--RDM


___
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] Is Zope slow?

2000-07-06 Thread Firestar

Hi, thanks for your comment.

Absolutely.  Apache is many times faster than Zope. (Don't know much about 
AOLserver, but anything with AOL. :)

However, Apache can't do squat compared with Zope when it comes to dynamic content.

Not true. I have been programming using PHP and PERL, and together with Apache(DSO) 
they are quite fast. They do offer sessions tracking, authentication, database API + 
other features. It's just that due to the increasing 'hype':) on Zope and the vast 
array of features that it seems to offer, i'm sort of "attracted" by it:)

Of course if i have time, i will play ard with it and see how good it is. Problem is 
that time is not really on my side and i need to decide on my next development tool 
fast(i have yet to try out other stuff e.g. ASP, JSP, Servlet..) I heard that the 
learning curve for Zope is quite steep, plus the documentation is not(?) that 
comprehensive, compared to e.g. PHP. What are your comments though? i may be wrong 
here...

regards,
firestar

__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


___
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] Is Zope slow?

2000-07-06 Thread Bill Anderson

Firestar wrote:
 
 Hi,
 
 I'm considering using Zope as the development tool for my next web project. However, 
I read from a recent benchmark test (from Qube, i think) that Zope(running thru 
Zserver?) is much SLOWER than Apache and AOLserver.  Is that true? To all Zope users 
and 'guru's, what is yr experience using Zope?


Define slow. Slow compared to what? Doing what?

That's a ig difference between Zope and Apache and AOLServer. they don't
_do_ the stuff that Zope does.

It's like comparing a Corvette and a v10 Dodge RAM.
id the Dodge 'slow'? When compared to the vette. But does the vette do
any heavy hauling? Can it tow a boat? A Trailer? Will it haul the kids
and the dog up througt the hills?

Apache does little other than serve stati files, and take output from
cgis (or modules, same _basic_ concept). Zope actually does the work.
For some things Zope is appropriate, and where it is, it outperforms
(IME) Apache. For others, like serving static content, it is slowER than
apache.

of course, slow is all relative. I have a couple zope Servers cranking
out ~80 requests per second. Is that slow? ;)

That's ~6 Million requests/day. Cut it in half, for more complicated
tasks, and still moving along at a good clip. What's better, try Apache
doing the same things.

Does your next project invlove more than just static files sitting on a
hard drive? Chances are, you'll be better off with Zope

Speed and Bencmarks are irrelevant when it comes to real-world
performance. :)


-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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] R: [Zope] Substract Date

2000-07-06 Thread Marcel Preda


- Original Message - 
From: F.Richter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 06, 2000 7:58 AM
Subject: [Zope] Substract Date


 Hi,
 
 
 I'm a newbi in Zope had a problem. I want substract a date from an other
 and  set the result of this to "DAYOFYEAR".
 
 For instance:
 '2000-05-10' - '2000-05-08' = 2 
 ^^^^^^^
Date1   Date2  result DAYOFYEAR
 
 Have everyone a solution for this problem??
 
 


dtml-let daysNumber="ZopeTime('2000-05-10') - ZopeTime('2000-05-08' )"
dtml-var daysNumber
/dtml-let

PM

___
"Will I be using Python today?"
 and if the answer is "yes"
 I know that it's going to be a good day.




___
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] Is Zope slow?

2000-07-06 Thread Firestar

Hi Bill, thanks for your reply.

--Original Message--
From: Bill Anderson [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED]
Sent: July 6, 2000 8:19:39 AM GMT
Subject: Re: [Zope] Is Zope slow?

Define slow. Slow compared to what? Doing what?

That's a ig difference between Zope and Apache and AOLServer. 
they don't _do_ the stuff that Zope does.

Apache does little other than serve stati files, and take 
output from cgis (or modules, same _basic_ concept). Zope 
actually does the work. For some things Zope is appropriate, 
and where it is, it outperforms (IME) Apache. For others, like 
serving static content, it is slowER than apache.

of course, slow is all relative. I have a couple zope Servers 
cranking out ~80 requests per second. Is that slow? ;)

That's ~6 Million requests/day. Cut it in half, for more 
complicated tasks, and still moving along at a good clip. 
What's better, try Apache doing the same things.

Does your next project invlove more than just static files 
sitting on a
hard drive? Chances are, you'll be better off with Zope

I have been programming with PHP and PERL, and they are quite fast, even when serving 
dynamic pages. Of course, they do not provide all the features of Zope, but they are 
able to handle things like sessions, authentication, database API...which is quite 
adequate for most small-to-medium websites. (although sometimes it's quite frustrating 
putting the modules together:)

Speed and Bencmarks are irrelevant when it comes to real-world
performance. :)

benchmark may not be accurate, but i still think that speed is still impt. Check out 
Jakob Nielsen's website and you would know that speed of serving webpages is one of 
the main usability factors. 

But then again, if Zope really is THAT good, i may be inclined to switch over and use 
it as my main development tool in future; but the speed factor is still worrying me - 
i wouldn't want my website to 'crawl' when i'm presenting it to my boss or clients:)

regards,
thee

__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


___
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] Is Zope slow?

2000-07-06 Thread Phill Hugo

Firestar wrote:

 I have been programming with PHP and PERL, and they are quite fast, even when 
serving dynamic pages. Of course, they do not provide all the features of Zope, but 
they are able to handle things like sessions, authentication, database API...which is 
quite adequate for most small-to-medium websites. (although sometimes it's quite 
frustrating putting the modules together:)

Yes, Zope is slower than Apache but so is a bus compared to a porsche.
However, you can do things with buses that would take forever with a
sports car, and some that are impossible (moving furniture ;)

If you want the best of both worlds, map out the images and large static
files from apache's config to go to itself and forward the rest over
PCGI to Zope (read up on mod_rewrite). This way, the dynamic stuff is
served by zope and the static stuff is handled by apache, both doing
what they are good at. You can add LocalFS to Zope to allow
administration of the static files too. This is what PHP does, that is
just a module which handles php files, everything else is handled by
Apache. PHP itself isn't that fast (it doesn't even cache compiled
code).

A decent 500Mhz PIII will knock out about 80 pages per second under Zope
(~40 for complex things) but given that many sites where speed is
important are very graphical, the ratio of a zope hit to an apache one
is reasonable  - on the site I'm working on this is about 1:10 and
current traffic (not yet under Zope) is 18Million hits per month. 

If ever you run out of power (or reach the halfway point) you can start
thinking of adding some caching or migrate to ZEO. In fact, if that
happens, you'd be stupid not to have some sort of cluster - you'd have a
very busy site!

Phill

___
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] Calling Stored Procedures using DCOracle

2000-07-06 Thread Monty Taylor

I have **exactly** the same problem. I've tried 8.1.5 and 8.1.6. 

I would LOVE any help anyone could give.

Monty

 Original Message 

On 7/6/00, 9:47:09 AM, Ronnie Sengupta [EMAIL PROTECTED] wrote 
regarding [Zope] Calling Stored Procedures using DCOracle:


 Hi,

 I am using DCOracle Ver 1.3.1 1b1. Connected to Oracle Ver 8.1.6.

 When I execute this :
  conn.callproc('addarticle',['dfdsf'])

 I get the following Error :
 __getattr__
 raise error, 'no usable procedure named '+name
 oci.error: no usable procedure named addarticle


 How ever if I do this :
  conn.getSource('ADDARTICLE')

 It returns the source code.

 In short I need to run my stored procedures from python. They are all 
ready
 and waiting to be used. Some one help me :-)


 Regards,
 Ronnie
 [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] questions on creating a ZClass

2000-07-06 Thread Jerome Alet

I'm currently trying to create a ZClass (based on ObjectManager) from a
Folder I've got. 

This folder contains a ZCatalog named Catalog.

If I copy and paste all existing methods and objects into my ZClass, do
what must be done (adapt the addForm and add method, define a
propertysheet, set the Views, etc...), and create an instance of my new
ZClass somewhere it works but I can't view my instance: if I choose View
I've got an Unauthorized error about Catalog. 

If I create the same ZClass without including the Catalog, then
instanciate the ZClass, then add the Catalog manually to the instance,
then it works fine ! 

Please could someone explain me ?

thanks in advance.

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE


___
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] Is Zope slow?

2000-07-06 Thread Martijn Pieters

On Thu, Jul 06, 2000 at 04:27:22AM -0400, Firestar wrote:
 Well, i do appreciate the 'extra' features that Zope provides, but speed is
 still a matter of concern here. Imagine showing my boss "what my website can
 do" and all those advanced features, but it crawls like a snail... 

"Slow" does not mean "crawl". It is slowER, it is a relative term. Is
www.zope.org slow? Is www.CodeCatalog.com slow? Is www.enterlinux.com slow?
For the featureset, PHP and Perl are either as fast or slower. Take Code
Catalog; they built their prototype site both in PHP and Zope, and Zope was
the fastest.

Zope is more than fast enough for 90% of the sites out there. In many cases,
you can optimize the application if necessary, you can use caching or
cache-control headers where applicable, you can use ZEO to distribute the load
over multiple Zope processes, on multiple machines if need be. You could run
static content from a dedicated machine, like Slashdot does. But this is not
always necessary. Zope.org runs without ZEO on a sub $1000 box. Commodity
hardware. 85.000 hits per day and on the increase.

Again, slow is a relative term. How can you be sure that Zope is going to be
the bottleneck in your app? It could well be that your internet connection is
the weak link, or that you just don't get the userbase to tax Zope to the
limits. Will the additional development time spent on another platforms be
worth the little bit of extra performance, if you don't even need it? 

Check out Zope.org for more examples and case studies. Search the mail
archives for comparisons. Forget about the speed issue.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
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] keyword index and netscape vs ie

2000-07-06 Thread Jonathan Cheyne

Hi all.

I am using a keyword index as per the excellent howto. I use the
following snippet to list the keywords as a series of links to further
searches. (this is the objects index_html)

related topics:
dtml-in keywords
a href="search?key=dtml-var sequence-item"dtml-var
sequence-item/abr
/dtml-in

This works fantastic if you are using IE or a keyword is just one word.
Netscape does not seem to do anything intelligent if it is a key phrase
instead and returns an error. Below are examples of the resolved urls it
is trying to load

IE .../search?key=direct%20access
Netscape   .../search?key=direct access

Explorer pads out with the %20 - netscape does not - in fact netscape
only works if a + appears instead. Netscape and Explorer  add the +  if
a form field is used instead (similar to that at the top of the zope
site etc)

So my question to the gurus is is there an attribute or expression I can
use to get round this? How can I specify that the two (or more) words in
a keyword phrase are separated by pluses when the link is generated?

yours in hope

Jonathan


___
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: keyword index and netscape vs ie

2000-07-06 Thread Jonathan Cheyne

 So my question to the gurus is is there an attribute or expression I can
 use to get round this? How can I specify that the two (or more) words in
 a keyword phrase are separated by pluses when the link is generated?

 ... embarrassing to work it out only a minute after sending in a query

url_quote_plus seems to be exactly where i needed to be ...

sorry for the bandwidth

J

___
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] Calculate values?

2000-07-06 Thread Peter Arvidsson

Chris Withers wrote:

 Peter Arvidsson wrote:
 
  I am about to do
  dtml-call "REQUEST.set('a', (a - b) * 15"

 I presume that should be:
 dtml-call "REQUEST.set('a', (a - b) * 15)"
 ? ;-)

 Anyway, two options:

 1. On your form, change your input to be:
 input type="TEXT" name="a:int"

 2. Change your call to be:
 dtml-call "REQUEST.set('a', (_.int(a) - _.int(b)) * 15)"

 cheers,

 Chris

At the same level, what is the easiest way to calculate the difference
(in minutes) between two given times in a form (HHMM)? Is there any easy
way to do this or do I have to do something complicate?


___
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] Reportlab and Zope

2000-07-06 Thread Jorge Magalhaes


Hi:

In this post i report my experience with Reportlab in Zope:

1.
 Install the Reportlab package in /usr/local/Zope/lib/python1.5 directory

2.
in the Zope directory i create a sub folder ./pdffiles

and:

 cd /usr/local/Zope/pdffiles
 su
 chmod 777

3.
 in the Extensions folder i create

###
#mymodule.py
###
import string
from reportlab.pdfgen.canvas import Canvas
from reportlab.lib.pagesizes import A3, landscape 
from reportlab.pdfgen.textobject import PDFTextObject
from types import *

def helloworld():
c = Canvas("./pdffiles/helloworld.pdf", pagesize=landscape(A3), bottomup=0)
c.setFont("Times-Roman", 12.0, leading=10.0)
c.drawString(100,100, "Hello World")
c.showPage()
c.save()


4.
In Zope:

External module:
ID: HelloW
function: helloworld
module: mymodule

Local File System
ID: Hello
patch: /usr/local/Zope/pdffiles

DTML Method:
ID: HelloWorld


dtml-call "HelloW"
a href="Hello" See the pdf file /a
...

My question is:

How i can insert the contents of the Local File System in to HTML environment?


Have a nice day

Jorge


___
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] Error tracing...

2000-07-06 Thread Peter Arvidsson

How do I trace errors in Zope? I get the following error message:
"Empty entry when integer expected "
It gives a hint of the problem but I cant see what value is empty.. how
do I control the values? Is there some way to write out variables or do
I just have to guess???


___
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] Is Zope slow?

2000-07-06 Thread michael bolger

maybe if we all share "optimum" hardware configuration to improve
performance+
-where is your server "hosted" as this is vital(obviously:)) to
speed/performance
 -maybe we could discuss network services/hoster_performance?

michael
drawingincode


___
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] wierdness with 2.2, Security, and manage_addProduct[' ']..

2000-07-06 Thread Brian Lloyd

 Why won't this work in Zope 2.2? Make a DTML method containing:
 
 dtml-with "manage_addProduct['ZCatalog']"
   dtml-call "manage_addVocabulary(id='doofus')"
 /dtml-with
 
 I cannot find a way to make the security system let this 
 through. 

 snip
 
 I've pretty much convinced myself it's a bug in the 2.2 
 security system...
 
 Anyone? Brian?

It is (or rather was). The fix is in beta 4, out late today/
early tomorrow.

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] Error tracing...

2000-07-06 Thread Peter Bengtsson

The tracing error should be comment in the error message page.
View Source.

Make sure you start up zope with -D for debugging reason.
- Original Message - 
From: Peter Arvidsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 06, 2000 6:55 PM
Subject: [Zope] Error tracing...


 How do I trace errors in Zope? I get the following error message:
 "Empty entry when integer expected "
 It gives a hint of the problem but I cant see what value is empty.. how
 do I control the values? Is there some way to write out variables or do
 I just have to guess???
 
 
 ___
 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] Calling Stored Procedures using DCOracle

2000-07-06 Thread Monty Taylor

Here's what happenes from me. You can see from the getSource on 
PGM140_API that the procedure exists within called select_targets. I 
can't get anything to recognize it.

Help?

 dbc.getSource('PGM140_API.SELECT_TARGETS')
''
 dbc.getSource('PGM140_API')
'PACKAGE PGM140_API IS\012-- PL/SQL Specification\012type asms_record is 
record\012  (amsm_id assoc_masters.asms_id%type\012  ,name
assoc_masters.name%type\012  );\012\012  type asms_cursor is ref 
cursor return asms_record;\012\012  procedure select_targets\012  
(pp_namein varchar2\012  ,pp_result  in out asms_cursor);\012\012/* 
select targets  by name\012   pp_name defines the search argument - it 
makes no difference if this is uppercase or lowecase\012   pp_result 
returns result\012*/\012\012  type technology_record is record\012  
(et_id   emerging_technologies.et_id%type\012  ,name
emerging_technologies.name%type\012  );\012\012  type technology_cursor 
is ref cursor return technology_record;\012\012  procedure 
select_technologies\012  (pp_categoryin varchar2\012  ,pp_result  in 
out technology_cursor);\012\012\012END PGM140_API;\012'
 dbc.getSource('SELECT_TARGETS')
''
 dbc.getSource('PGM140_API.select_targets')
''

 Original Message 

On 7/6/00, 2:32:39 PM, Satheesh Babu [EMAIL PROTECTED] wrote regarding RE: 
[Zope] Calling Stored Procedures using DCOracle:


 Did you try
  conn.callproc('ADDARTICLE',['dfdsf'])
 ?

 As far as I know Oracle stores the object names
 in upper case in the data dictionary.

~  V.Satheesh Babu [EMAIL PROTECTED]
   . . http://vsbabu.csoft.net/
   /V\ - Duct tape is like the force.  It has
  // \\  a light side, and a dark side, and
 /(   )\ it holds the universe together ...
  ^'~'^

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Ronnie Sengupta
 Sent: Thursday, July 06, 2000 3:47 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Calling Stored Procedures using DCOracle


 Hi,

 I am using DCOracle Ver 1.3.1 1b1. Connected to Oracle Ver 8.1.6.

 When I execute this :
  conn.callproc('addarticle',['dfdsf'])

 I get the following Error :
 __getattr__
 raise error, 'no usable procedure named '+name
 oci.error: no usable procedure named addarticle


 How ever if I do this :
  conn.getSource('ADDARTICLE')

 It returns the source code.

 In short I need to run my stored procedures from python. They are all 
ready
 and waiting to be used. Some one help me :-)


 Regards,
 Ronnie
 [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] Re:Web Site newbie

2000-07-06 Thread michael montagne

Tremendous reply!!  Just what I needed.  I'm curious about one thing tho.
If you don't need a regular web server (for serving files outside of Zope),
stick with the built-in ZServer. 
Does this mean that I have to have all my files in the zope folder?
Wouldn't I want to do that anyway?  Can you elaborate?
I'd like to stick with the Zserver if I can but I don't want to run into any
road blocks too soon down the road.
-mjm

 winmail.dat


Re: [Zope] LONG insert 2000 chars fail

2000-07-06 Thread Riku Voipio

On Thu, Jul 06, 2000 at 08:48:43AM -0400, Satheesh Babu wrote:
 Hi,
 
 We use Oracle v 8.1.5 and 8.1.6 and there we can go upto
 5000 characters for string literals. Anyway, LONG is a
 deprecated datatype and we decided to use detail tables
 for text more than 4000 chars. Any given string will be
 split at 4000 chars and inserted as one or more records
 into detail table, as varchar2 fields. Varchar2 fields
 are easy to process also.

Yes, you are right, we are using 8.1.5 On Linux, and it swallows 
up to 4k. But having to split a string to get it in the database 
feels pretty stupid. 

 I think it is more of an Oracle OCI problem than OracleDA.

Yep, I tried to look at oci.c/oci.i sources and got shocked... 
Maybe overnight I'll gather some courage to see if it would 
be feasible to use 'bind variables' to push data in to the long 
columns. Or will it be easier to split text with a python 
external method.

-- 
Riku Voipio
[EMAIL PROTECTED]
09-862 60764


___
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: Date checking?

2000-07-06 Thread Andy Gates

A quicky for you Zopistas:  I have some dates in a database, which 
govern when a story becomes live and when it expires.  I need to do a 
test along the lines of:

dtml-in stories
  if (startdate is past) and (expirydate is future)
show the story
  /if
/in

I have seen the fmt parameters isPast and isFuture and this gives me a 
true/false response:  dtml-var startdate fmt=isPast  but how do I use
that in an if test?  I keep (as usual) getting syntax errors.  Help!

--
Andy Gates, Learning and Research Technology
[EMAIL PROTECTED] - ICQ#74362415


___
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] R: [Zope] Newbie: Date checking?

2000-07-06 Thread Marcel Preda

- Original Message -
From: Andy Gates [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 06, 2000 4:06 PM
Subject: [Zope] Newbie: Date checking?




 A quicky for you Zopistas:  I have some dates in a database, which
 govern when a story becomes live and when it expires.  I need to do a
 test along the lines of:

 dtml-in stories
   if (startdate is past) and (expirydate is future)
 show the story
   /if
 /in

 I have seen the fmt parameters isPast and isFuture and this gives me a
 true/false response:  dtml-var startdate fmt=isPast  but how do I use
 that in an if test?
 I keep (as usual) getting syntax errors.
:)


dtml-if "_.DateTime(startdate).isPast() and _.DateTime(expirydate).isFuture()"
...
...
/dtml-if


PM


___
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] LONG insert 2000 chars fail

2000-07-06 Thread Andy Gates

Message-ID: [EMAIL PROTECTED]
Priority: NORMAL
X-Mailer: Execmail for Win32 5.1 Build (9) 
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"

Possibly related:  Webform-based news story editor generates long text 
strings for body text.  Using an ordinary form, this ends up 
(url-encoded) in the URL, but it's betting truncated after about 2000 
chars.  Many of my stories are longer than that.  What to do?

AndyG

___
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] R: [Zope] Newbie: Date checking?

2000-07-06 Thread Andy Gates

Message-ID: [EMAIL PROTECTED]
Priority: NORMAL
X-Mailer: Execmail for Win32 5.1 Build (9) 
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"

 dtml-if "_.DateTime(startdate).isPast() and _.DateTime(expirydate).isFuture()"
 ...
 /dtml-if

I'll work it out one day, honest.  Ta.

AndyG

___
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] LONG insert 2000 chars fail

2000-07-06 Thread Chris McDonough

Use form action=bleah method=post?

 -Original Message-
 From: Andy Gates [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 06, 2000 10:32 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] LONG insert  2000 chars fail
 
 
 Message-ID: [EMAIL PROTECTED]
 Priority: NORMAL
 X-Mailer: Execmail for Win32 5.1 Build (9) 
 MIME-Version: 1.0
 Content-Type: Text/Plain; charset="us-ascii"
 
 Possibly related:  Webform-based news story editor generates 
 long text 
 strings for body text.  Using an ordinary form, this ends up 
 (url-encoded) in the URL, but it's betting truncated after about 2000 
 chars.  Many of my stories are longer than that.  What to do?
 
   AndyG
 
 ___
 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] howto_GUF

2000-07-06 Thread Mario Premke

Hi,
I have installed Genreic User Interface with
all the permission settings described in the
README, but I cannot log into the folder
which I want to protect. When I log in as
"jorge" with passwd "secret" I get:

Sorry, a Zope error occurred.

 Traceback (innermost last):
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
214, in publish_module
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
179, in publish
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202,
in zpublisher_exception_hook
 (Object: ElementWithAttributes)
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
151, in publish
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/BaseRequest.py,
line 430, in traverse
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Products/GenericUserFolder/GenericUserFolder.py,
line 270, in validate
 (Object: ElementWithAttributes)
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Products/GenericUserFolder/GenericUserFolder.py,
line 308, in _basic_validate
 (Object: ElementWithAttributes)
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/zLOG.py, line 198, in LOG
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Zope/ZLogger/ZLogger.py,
line 18, in log_write
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Zope/ZLogger/stupidFileLogger.py,
line 40, in __call__
   File
/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Zope/ZLogger/stupidFileLogger.py,
line 62, in stupid_log_write
 IOError: [Errno 5] Input/output error




Any hints will be appreciated ...
Mario

___
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] Is Zope slow?

2000-07-06 Thread J. Atwood

No. Not when compared to other applications that do the same *type* of thing
(which there are very very few).

Check out an interesting set of benchmarks I ran against Zope and Tomcat
connecting to a PostgreSQL database.

http://www.zope.org/Members/BwanaZulia/benchmarks.html

J



 From: Firestar [EMAIL PROTECTED]
 Date: Wed, 5 Jul 2000 22:13:32 -0400 (EDT)
 To: [EMAIL PROTECTED]
 Subject: [Zope] Is Zope slow?
 
 Hi,
 
 I'm considering using Zope as the development tool for my next web project.
 However, I read from a recent benchmark test (from Qube, i think) that
 Zope(running thru Zserver?) is much SLOWER than Apache and AOLserver.  Is that
 true? To all Zope users and 'guru's, what is yr experience using Zope?
 


___
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] R: [Zope] Newbie: Date checking?

2000-07-06 Thread Andy Gates

 dtml-if "_.DateTime(startdate).isPast() and 
_.DateTime(expirydate).isFuture()"
 ...
 ...
 /dtml-if

This gives:
Error Type: TypeError
Error Value: __div__ nor __rdiv__ defined for these operands

The dates are pulled from an access (!) database where they are defined
as date/time types.  Me confoosed.

Andy

___
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] SquishDot properties

2000-07-06 Thread tom smith

hi,

I'd like to add a URL property to a Squishdot article (and remove the "dept"
property), is this possible and how would I do it?

Also, can I auto-complete the "from" field with the users' username that
they have logged in withthis is for an intranet

cheers

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] MacOSX

2000-07-06 Thread tom smith

I noticed in the how-tos that someone had managed to make a build of zope
for
MacOSX . Given that I know nothing about unix commands, is there a pre-made
binary I can just drop onto my G4 (running OSX DP4) and run? Is this even
possible or is it
not the unix way?

IS there a reason for there not being a macintosh version of zope, does the
platform not allow it or is it just that nobody has wanted to do it

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] zope/python startup error

2000-07-06 Thread tom smith

newbie question.

when zope starts I get the attached error dialog. Any ideas how I can fix
this since zope is running on a remote server? It seemed to start going
wrong after installing a shed-load of products into zope.

cheers

tom

ps. to go into greater detail...

...I have two copies of Python...one in Zope's "lib" folder, and another in
"Program files". Do I "need" both? Are they getting their PYTHONPATHs mixed
up?

Ideally I'd like just one Python, but with the IDLE editor AND the Windows
extensions (ODBC),is this possible and how would I do it. Can I add IDLE and
ODBC to zope's python without breaking zope.




 zope_error.gif


Re:[Zope] Newbie: Date checking?

2000-07-06 Thread Marcel Preda

 dtml-if "_.DateTime(startdate).isPast() and
 _.DateTime(expirydate).isFuture()"
  ...
  ...
  /dtml-if

 This gives:
 Error Type: TypeError
 Error Value: __div__ nor __rdiv__ defined for these operands

Is better to put some mor lines from Traceback Exception
To see the modul and the line

 The dates are pulled from an access (!) database where they are defined
 as date/time types.

Me confoosed.

 Andy G

Me too.


Someting like
dtml-if "_.DateTime('2000-03-03').isPast() and
_.DateTime('2000-12-02').isFuture()"
STORY
/dtml-if

or

dtml-if "ZopeTime('2000-03-03').isPast() and
ZopeTime('2000-12-02').isFuture()"
STORY
/dtml-if

works on Zope 2.1.4  and Zope 2.1.6

I was thinking that are strings, I have made this  many, many times.



btw: what type are IN ZOPE?

If are date/type in Zope , I guess that you can use something like

dtml-if "startdate.isPast() and  expirydate.isFuture()"
Maybe you are lucky, I didn't test it :)




PM




___
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] Newbe question concerning using python classes and external methods

2000-07-06 Thread Gaspard, Bradley S

All,

I am a new Zope user and I guess I'm missing something fundemental that I
haven't been able to glean from the documentation and various "How-to's".
As a learning tool I am trying to implement one of Brian Lloyd's examples I
found on the Web implementing a GuestBook.  

I suspect what I don't understand is how to write the external method that
would make use of this class (The one I have been playing with follows the
class definitions).  Anyhow, I've created an an external method and call
(e.g. dtml-var guest) after which the guestBookForm is displayed.  After
filling out the form and submitting it Zope does not seem able to find the
signGuestBook method.  What am I doing wrong??

Other than mostly trivial examples, I haven't been able to find many
complete (working) examples of using external methods.

Thanks in advance for any help.


"""Module guestbook: a simple guestbook application"""

class GuestBook:
  """A guestbook object that provides both the forms
 and the handling of submitted form data."""

  def __init__(self, title, filename):
self.title=title
self.filename=filename

  def guestbookForm(self):
"""Return the guestbook from to the user"""
return """HTML
  HEADTITLE%s/TITLE/HEAD
  BODY
  H2%s/H2
  Please sign our guestbook!
  P
  FORM ACTION="signGuestBook" METHOD="POST"
  Name: INPUT TYPE="TEXT" NAME="name"BR
  Email: INPUT TYPE="TEXT" NAME="email"BR
  INPUT TYPE="SUBMIT" VALUE="Sign Guestbook"
  /FORM
  /BODY
  /HTML""" % (self.title, self.title)

  def successPage(self):
"""Return a page to thank the user on success"""
return """HTML
  HEADTITLE%s/TITLE/HEAD
  BODY
  H2Thank You!/H2
  Thank you for signing %s!
  /BODY
  /HTML""" % (self.title, self.title)

  def signGuestBook(self, name, email='not specified'):
"""Handle a submitted guestbook form"""

# Open a file to save the guestbook entry
try: 
  file=open(self.filename, 'a')
except IOError:
  file=open(self.filename, 'w')
entry='Guestbook entry: %s %s\n' % (name, email)
file.write(entry)
file.close()
return self.successPage()





External method

import sys
sys.path.append('/usr/local/src/Zope-2.1.6-linux2-x86/lib/python/Shard/jscap
e/winsat')

import guestbook

def AddGuest(self):
  myGuestBook=guestbook.GuestBook('My GuestBook', 'guestbookdata.txt')
  return myGuestBook.guestbookForm()




Brad


___
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] ZWiki with RemoteWikiLink - minor fix and remaining question

2000-07-06 Thread Geoff Gardiner

I needed to create 'proper' URLs with a remote wiki link, but ZWiki 0.6.1
only allowed things of the form ZWikiName:name-with-characters-only. I
suppose my locale setting translates too many things to whitespace, but I'm
not sure.

A simple fix in the ZWikiPage.py file (sorry no diff here):
 find line
interwikilink= r'!?((?Plocal%s):(?Premote[\w]+))' % (wikilink)
 replace string
[\w] by [A-Za-z0-9/:@_~#=\.\-\?]

(note I couldn't include the % char because it seems to provoke the need for
another string).

Remaining question. Does anyone have a fix for the incorrect rendering of
[notzwikiname] to nested URL
  a href=notzwikinamea href=notzwikinamenotzwikiname/a/a
or do I have to fix that for myself? This also fails to work as a remote
wiki link, and I thought a fix for one might be a fix for the other also.

Thanks.

Geoff Gardiner


___
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] SquishDot properties

2000-07-06 Thread Chris Withers

tom smith wrote:
 I'd like to add a URL property to a Squishdot article (and remove the "dept"
 property), is this possible and how would I do it?

The 'proper' response would be 'no'.

The hacky response is, just store the URL in the 'dept' property ;-)
Adjust your forms slightly (so they say URL instead of dept but make
sure the form field is still named 'dept').

Nice huh? ;-)

(I was going to do something similar(ly nasty ;-) to use the file
attachment feature to store an image that was rendered when you viewed
the posting ;-)

 Also, can I auto-complete the "from" field with the users' username that
 they have logged in withthis is for an intranet

What have they logged in with? Squishdot should 'remember' the name and
email address after they're typed it in once, which maybe helpful since
I get a feeling what you're asking about may not be possible :(

cheers,

Chris

PS: Squishdot has it's own mailing list as well: [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] howto_GUF

2000-07-06 Thread Andy McKay

Wild stab in the dark is that there is a problem writing a the standard
stupid_log_file if you get rid of -D to stop logging. But IMHO logging is
useful and there is a problem writing to the file for some reason, its worth
fixing.

- Original Message -
From: "Mario Premke" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 06, 2000 7:44 AM
Subject: [Zope] howto_GUF


 Hi,
 I have installed Genreic User Interface with
 all the permission settings described in the
 README, but I cannot log into the folder
 which I want to protect. When I log in as
 "jorge" with passwd "secret" I get:

 Sorry, a Zope error occurred.

  Traceback (innermost last):
File
 /home/mapr/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
 214, in publish_module
File
 /home/mapr/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
 179, in publish
File
 /home/mapr/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202,
 in zpublisher_exception_hook
  (Object: ElementWithAttributes)
File
 /home/mapr/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
 151, in publish
File
 /home/mapr/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/BaseRequest.py,
 line 430, in traverse
File

/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Products/GenericUserFolder/Gener
icUserFolder.py,
 line 270, in validate
  (Object: ElementWithAttributes)
File

/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Products/GenericUserFolder/Gener
icUserFolder.py,
 line 308, in _basic_validate
  (Object: ElementWithAttributes)
File
 /home/mapr/Zope-2.1.6-linux2-x86/lib/python/zLOG.py, line 198, in LOG
File
 /home/mapr/Zope-2.1.6-linux2-x86/lib/python/Zope/ZLogger/ZLogger.py,
 line 18, in log_write
File

/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Zope/ZLogger/stupidFileLogger.py
,
 line 40, in __call__
File

/home/mapr/Zope-2.1.6-linux2-x86/lib/python/Zope/ZLogger/stupidFileLogger.py
,
 line 62, in stupid_log_write
  IOError: [Errno 5] Input/output error




 Any hints will be appreciated ...
 Mario

 ___
 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] Re:Web Site newbie

2000-07-06 Thread Andy McKay

A site might be more than just Zope, it could be a whole of bunch of servers
applications etc. For example an e-commerce section written in say Perl, or
streaming audio from some other server or some fancy.

Most stuff 90% of sites do can be done in Zope and ZServer is great for
that. To serve from ZServer I think files have to be in Zope (but I might be
wrong on that)...

As ever it depends...

- Original Message -
From: "michael montagne" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 06, 2000 6:49 AM
Subject: [Zope] Re:Web Site newbie


 Tremendous reply!!  Just what I needed.  I'm curious about one thing tho.
 If you don't need a regular web server (for serving files outside of
Zope),
 stick with the built-in ZServer. 
 Does this mean that I have to have all my files in the zope folder?
 Wouldn't I want to do that anyway?  Can you elaborate?
 I'd like to stick with the Zserver if I can but I don't want to run into
any
 road blocks too soon down the road.
 -mjm



___
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] Python or DTML

2000-07-06 Thread Andy McKay

 The Zope core is *written* in python (with hotspots coded in python
 modules written in C), not just integrated with it.  Since DTML
 must be interpreted by the Zope core (an interpreter running in an
 interpreter), whereas the python code in an external method is
 simply (more or less) executed (just one interpretation level), I
 would expect external methods and python products to be a lot faster
 than the same functionality coded in DTML.  But I'm speculating
 here based only on my current mental model of how Zope works, so
 I could be wrong grin.

I agree, again Im no expert, but from what I understand DTML is parsed into
Python and then executed. You can skip that step altogether by not using
DTML. I also find DTML is rather painful and anything involving 5 or 6 lines
of DTML can be coded in *less* lines of more efficient Python!


___
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] Is Zope slow?

2000-07-06 Thread Andy McKay

  -maybe we could discuss network services/hoster_performance?

This is more of a problem for most people. One evening whilst bored we
calculated that Zope could happily serve enough people to fill up our
pipe... so the bottle neck is our connection.

Mind you we'd had a beer or two so calculations could be flawed.


 michael
 drawingincode


 ___
 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] Which PostGreSQL DA should I use?

2000-07-06 Thread Eric L. Walstad

OK, I am thinking about going from MySQL to PostgreSQL for its transactions
and subqueries.  I am curious which DA I should use and why.  I see that I
can choose from:

1. SQLRelay
2. ZPoPyDA
3. ZPyGreSQLDA

Which are you using and why did you choose it over the others?

Thanks for your time.

Eric.


___
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] the manage_ methods

2000-07-06 Thread Fabio Akita

Hello

I am trying to realize how the manage_ DTML methods works. The only
documentation that I found was a quick reference that just say that the
methods exist with simple descriptions as:

manage_addDTMLMethod(id, [title, file, REQUEST, submit])

But there is no details about how this works, what´s required. Is there any
documentation about them? I am trying to do a webpage that can change the
content of properties of a folder.

Regards.
[]´s

Fabio Akita - Developer
F/Nazca SS / Adversiting
[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] Reusing standard_html_header/footer

2000-07-06 Thread Jeff K. Hoffman

On Thu, 6 Jul 2000, Bill Anderson wrote:

 Michael Gutmann wrote:
  
  This is not a question, I think it's more a request for comment.
  
  Problem: I have the following structure of folders. The top folder has
  the global standard_html_header and acquisition has it, that it
  is usable in all the subfolders.
  
  /
standard_html_header
SubFolder1/
   SubFolder2/
  
  Now I have a small modification in my headers from SubFolder1 downwards.
  Well, there are many ways to cope with that problem, I want to do it
  that ways: I want to integrate the old standard_html_header into the
  new one I define in SubFolder1. Ok, that can look like this:
 

 Not quite sure I understand what you are trying to do but

I believe he is trying to do (in Java, because it's easiest for me to
express it, here):

public class StandardHtmlHeader
{
  public String render() {
return "Hello, World."
  }
}

public class SubStandardHtmlHeader extends StandardHtmlHeader
{
  public void render() {
return super() + " Woohoo!"
  }
}

Well, okay, not exactly, since we're talking acquisition not inheritance.
But, the idea is the same. He wants to display the previous
standard_html_header, with some additional stuff added, in his SubFolder's
standard_html_header.

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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] Persisting a dictionary as a object property

2000-07-06 Thread Andy McKay

Thanks that worked like a charm!

- Original Message -
From: "Martijn Pieters" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, July 05, 2000 5:21 PM
Subject: Re: [Zope] Persisting a dictionary as a object property


 On Wed, Jul 05, 2000 at 04:52:44PM -0700, Andy McKay wrote:
  Ok so I have an object, I have many properties persisting on the object
  using the wonderful PropertyManager. But I want to persist a dictionary.
  This isn't an option for the PropertyManager. I added a dictionary into
the
  object just by adding the line: _map = {}

 You will have to let the persistance machinery know that you changed the
 dictionary. A dictionary is a mutable object, and persistance can only
track
 inmutable objects automatically. See the ZODB docs:


http://www.zope.org/Documentation/Developer/Models/ZODB/ZODB_Persistent_Obje
cts_Persistent_Doc.html

 (http://www.zope.org/Documentation/Developer/Models/ZODB for the framed
set,
 choose Persitent Objects, then Persitent in the bottom-left frame).

 You should either treat the dictionary as immutable:

   data = self._map
   data.append(foo)
   self._map = data

 or set a special flag to let the ZODB know the objetc has changed:

   self._map.append(foo)
   self._p_changed = 1

 You could also replace the dictionary by a PersitentMapping instance. See
 above docs for more info.

 --
 Martijn Pieters
 | Software Engineermailto:[EMAIL PROTECTED]
 | Digital Creations  http://www.digicool.com/
 | Creators of Zope   http://www.zope.org/
 | ZopeStudio: http://www.zope.org/Products/ZopeStudio
 -

 ___
 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] FSSession buglette

2000-07-06 Thread Paul Gresham

Hi All,
I had some real problems with FSSession tonight. The first problem was
when the FSSession tried to load, it would get an error along the lines
of failed to import Acquisition. Next step was when the user session
tried to rename and the file wasn't there. This threw in error in a Zope
commit transaction, and rendered the site useless until a restart was
performed (this was correct action by Zope, i.e. all commits are blocked
to avoid the database becoming more screwed after a commit fails).

First thing I did was put a try around the dump to stop it from throwing
an error if the file doesn't exist. This is certainly a preferred option
for us, as it does not affect the function of the FSSession at all
(Except that one session is obviously now duff).

Second thing in tracking down the culprit, I finally figured out that
what I was doing was quite naughty. Basically creating an option for the
user to return to the site and have his/her name already entered into
the login screen. The mistake was putting AUTHENTICATED_USER into
FSSession, it basically tried to store the object, when all I wanted was
the string username! Oops!

Regards
Gresh

___
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: Build Object Names

2000-07-06 Thread Terry Babbey

I am trying to build my object names and it is not working. Here is my
code done in three ways and only one way works.
#1 dtml-var "ProgCode+'AR'"
#2 dtml-var name="T043AR"
#3 !--#let booger="ProgCode + 'AR'"--
 dtml-var booger
 !--#/let--

#1 displays T043AR on the screen
#2 displays the Text I entered into the object (This is what I want)
#3 again only displays the T043AR

Any suggestions? I am hoping I just need some basic information to
accomplish this.

Thanks,
Terry

--
__
Terry Babbey
Technical Support Specialist
Lambton College, Sarnia, Ontario, Canada
__



___
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] Is Zope slow?

2000-07-06 Thread Steve Alexander


Firestar wrote:
 Check out Jakob Nielsen's website and you would know that speed of serving
 webpages is one of the main usability factors.

The bottleneck is not generally the speed of serving webpages, but
rather, the speed of the client downloading the data from webpages, as
the data has to go through N regions of the Internet between the server
and client.

Also, users tend to look at more than one webpage at a time, and so
their incoming bandwidth per connection is reduced even further.

The answer to this issue is to avoid large graphics and large pages,
allow client-side caching, move the useful content of a site "forwards"
towards its entrance, avoid banner adverts...

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/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] Squishdot giving DateTimeError(newbie)

2000-07-06 Thread Rajil Saraswat

hi
I am trying to setup squishdot. I had correctly setup the system(psotings
etc were going on fine), but a weird thing happened as the 12 in the
night passed by the squish stopped running.
it is now giving Error:DateTimeError
 ErrorValue:UnrecognisedTimeZone
I am running zope on MandrakeLinux7.1, is the time on the system got to
this or is this a squish problem.

Thanks for any clues



___
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] ANN: Forthcoming Zope Book

2000-07-06 Thread Amos Latteier

Hi,

We all know that Zope needs better docs. To this end we've added a help
system, API docs and a tutorial to Zope 2.2.

Now the important work of replacing the aging guides is job number one.

Michel Pelletier has been diligently working on a Zope book for O'Reilly
for a number of months. I convinced him to take me on as a co-author and
turn the book into official Zope documentation. O'Reilly is on board and
is currently choosing between two different open content licenses. Find
out the full scoop on the Zope Docs Wiki.

  http://www.zope.org/Wikis/Docs/ZopeBook

We're excited about the book and think that it will fill an important
hole the current official Zope docs.

As soon as a content license is chosen we'll make our rough drafts
available.

-Amos

--
Amos Latteier mailto:[EMAIL PROTECTED]
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] Redirect when not authenticated

2000-07-06 Thread Paul Gresham

Hi All,
I have a secure directory (no Anon access) and when I access it, it will
throw me to a login screen in the GUF folder in that dir. What I really
want to happen is for the user to be thrown back up a level to the main
login/news etc etc screen which is a better place to start. however I
seem to be getting all sorts of security problems. Any ideas anyone?

Many thanks
Gresh

___
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] Fw: [Zope] Re:Web Site newbie

2000-07-06 Thread Loren Stafford


- Original Message -
From: "Loren Stafford" [EMAIL PROTECTED]
To: "michael montagne" [EMAIL PROTECTED]
Sent: July 06, 2000 01:11 PM
Subject: Re: [Zope] Re:Web Site newbie


 As Andy also said, "It depends".  It depends on what you want to do with
 your website. Write and let us know so we can give more specific answers.
 Chances are you can put all your content in Zope's database.

 Some folks decide to store some files outside of Zope and serve them thru
 Apache, for any of the following reasons:

 1. You've got thousands of them
 2. They're huge (full-length mpeg2 movies, for example -- hundreds of
 megabytes)
 3. They need to be accessible to other applications

 But if you don't have such requirements, count on Zope for everything.

 -- Loren

 - Original Message -
 From: "michael montagne" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: July 06, 2000 06:49 AM
 Subject: [Zope] Re:Web Site newbie


  Tremendous reply!!  Just what I needed.  I'm curious about one thing
tho.
  If you don't need a regular web server (for serving files outside of
 Zope),
  stick with the built-in ZServer. 
  Does this mean that I have to have all my files in the zope folder?
  Wouldn't I want to do that anyway?  Can you elaborate?
  I'd like to stick with the Zserver if I can but I don't want to run into
 any
  road blocks too soon down the road.
  -mjm
 



___
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: FSSession buglette

2000-07-06 Thread Paul Gresham

Pavlos Christoforou wrote:
 
 Paul
 
 Are you running FSSession0.4.0? If not please upgrade. The problems you
 mention below have been corrected. Nevertheless the first problem you
 descripe is not really related to FSSession. What happens is that certain
 Zope objects that can be pickled should not be stored in FSSession.
 Initially FSSession used marshal to serialize python objects, which is
 faster and does not allow storing of instances etc. I moved to pickle at
 the users request but one should be careful what he/she stores in
 FSSession.
 
 FSsession-0.4.0 should not raise an exception in tpc_finish. If I
 understand Zope's two phase commit mechanism, it is ok to raise an
 exception in tpc_begin (which corresponds to the 'polling' stage i
 believe) but not in tpc_finish. So now potential problems like full
 filesystem, unpicklable instances etc should be caught in tpc_begin.
 
 Pavlos
Pavlos Christoforou wrote:
 
 Paul
 
 Are you running FSSession0.4.0? If not please upgrade. The problems you
 mention below have been corrected. Nevertheless the first problem you
 descripe is not really related to FSSession. What happens is that certain
 Zope objects that can be pickled should not be stored in FSSession.
 Initially FSSession used marshal to serialize python objects, which is
 faster and does not allow storing of instances etc. I moved to pickle at
 the users request but one should be careful what he/she stores in
 FSSession.
 
 FSsession-0.4.0 should not raise an exception in tpc_finish. If I
 understand Zope's two phase commit mechanism, it is ok to raise an
 exception in tpc_begin (which corresponds to the 'polling' stage i
 believe) but not in tpc_finish. So now potential problems like full
 filesystem, unpicklable instances etc should be caught in tpc_begin.
 
 Pavlos

Hi, Yep, I'm definitely running 0-4-0, I think the fact that I did
something naughty caused the rename (and therefore the commit) to fail,
when it expected to work. An exception in the commit then caused Zope to
stop all commits. What is worrying is that someone much more naughty
than I am, may just do something similar on our live system (Once this
goes live)

Regards
Paul

___
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] Reportlab and Zope

2000-07-06 Thread Dieter Maurer

Jorge Magalhaes writes:
   How i can insert the contents of the Local File System in to HTML environment?
The easiest way, probably, is Jonothan Farr's LocalFS product.



Dieter

___
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] Calling Stored Procedures using DCOracle

2000-07-06 Thread Dieter Maurer

  When I execute this :
   conn.callproc('addarticle',['dfdsf'])
  
  I get the following Error :
  __getattr__
  raise error, 'no usable procedure named '+name
  oci.error: no usable procedure named addarticle
  
  
  How ever if I do this :
   conn.getSource('ADDARTICLE')
  
  It returns the source code.
Notice the (potentially) essential difference:
In "callproc" you use "addarticle" (i.e. all lowercase),
but in "getSource" you use "ADDARTICLE" (i.e. all uppercase).

Maybe, case is essential.

  In short I need to run my stored procedures from python. They are all ready
  and waiting to be used. Some one help me :-)
Some days ago, I extended ZOracleDA with a method to call
a stored procedure.

ZOracleDA gives me a cursor. I used:
return cursor.procedures.my_procedure_name(my_arguments)


worked fine.



Dieter

___
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-help

2000-07-06 Thread Dieter Maurer

Bruno Nana writes:
  select *
  from iekunde
  !--#if "alphabet!='alle'" --
  where (substring(firma,1,1)=substring(!--#var alphabet --,1,1) or
  substring(firma,1,1)  substring(!--#var alphabet --,1,1)) and
  (substring(firma,1,1)=substring(!--#var alphabet --,3,1) or
  substring(firma,1,1)  substring(!--#var alphabet --,3,1))
  !--#/if --
  
  And the error is this:
  
  Error Type: Error
  Error Value: Error processing select * from iekunde where
  (substring(firma,1,1)=substring(UuZ,1,1) or substring(firma,1,1) 
  substring(UuZ,1,1)) and (substring(firma,1,1)=substring(UuZ,3,1) or
  substring(firma,1,1)  substring(UuZ,3,1)) Invalid column name 'UuZ'.
  Invalid column name 'UuZ'. Invalid column name 'UuZ'. Invalid column name
  'UuZ'.
  
  That mean that the operator "" can only compare two number.

It means that "UuZ" is interpreted as a *column name*, i.e. as
a field in your database and not as a string. This is
because, it is not enclosed in '...'.
Such a column does not exist; therefore, the invalid column name
errors.

Instead of "dtml-var alphabet" you should use
"dtml-sqlvar alphabet type=string".
It does represent the constant string value correctly.


Dieter

___
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] PoPy-1.2.tar.gz file is missing...

2000-07-06 Thread Eric L. Walstad

The PoPy-1.2.tar.gz file doesn't seem to be available from the
ftp.mixadlive.com site.  Would anyone out there mind emailing me the file?

Thanks,

Eric.


___
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] How do I specify a list element?

2000-07-06 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  I have a list (I think) created this way:
  
  (date = '31-DEC-1999')
  
  dtml-call "REQUEST.set('MyList', _.string.split(date, '-'))"
  
  so now REQUEST['MyList'] should contain 3 elements: 
  31 DEC 1999
  
  How, in dtml, do I say "give me the value of the 1st element of MyList" or 
  the second or third.
  
  I've tried dtml-var "REQUEST['MyList'][0]" but I get this error:
  
  Error Type: TypeError
  Error Value: argument 1: expected read-only character buffer, 
  Missing found
  Now I don't know which part this error is refering to, but anyhow I want 
  this functionality.
I expect that your "date" looks like a string but in fact
is an object.
In this case, your error does not result from the
"MyList[0]" but from th "_.string.split(date,'-')".
Use "_.string.split(_.str(date),'-')", instead.



Dieter


___
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] Sql result searchs with Z Catalog

2000-07-06 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  I need to somehow populate an ZCatalog index with the results of a 
  Z SQL Method. If you are familiar with ColdFusion, it needs to have 
  the same functionality as a Verity search on a collection (custom 
  indexed from a query).  I am having trouble seeing how this might 
  be accomplished.
You asked this question already several times.
I did not answer, because I do not understand why you may
want to do this.
I cannot imagine why someone wants to emulate a fast relational
search by a (comparatively) slow ZCatalog search.
Thus, I must miss something.


Anyway. ZCatalog is happy to catalog anything that is
URL addressable.
Using direct traversal (-- Z SQL User Guide) you can make
database records URL addressable.

You probably will need an explicit loop over your query
result set and call "catalogObject" for each of them.


Dieter

___
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] Nested dtml-in loops (was: [Zope-dev] SQL-Output)

2000-07-06 Thread Dieter Maurer

Andre Schubert writes:
   ... problem with names clashes from nested dtml-in loop ...

Your problem may be generalized:

-- l1 and l2 are sequences --

dtml-in l1
  dtml-in l2
-- here you need to access both components from both the
inner and the outer dtml-in
There may be a name clash between the two (implicite) loop variables
--
  /dtml-in l2
/dtml-in l1

You can use renaming to avoid any clashed.
I demonstrate it for "sequence-item".

dtml-in l1
  dtml-let outer_lv=sequence-item -- ATTENTION: calls it! --
  
dtml-in l2
  ...
  dtml-var outer_lv   -- the outer loop value --
  dtml-var sequence-item  -- the inner loop value --
  ...
/dtml-in l2
  /dtml-let
/dtml-in l1


If you want to prevent the outer loop value to be called,
you may use "_.getitem('sequence-item')" rathen than just
sequence-item.


Dieter


___
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] NOTICE: issue with database packing in current Zope releases

2000-07-06 Thread Dieter Maurer

Brian Lloyd writes:
Jim found a problem with the algorithm for packing the Zope
database that we wanted to announce so that folks can avoid 
being bitten by it until the fix is out (in b4).
   
   I think this is a candidate for a Hotfix.
   
   2.2 upgrades could be problematic and I think we might continue
   to see large numbers of 2.1.6 users until all the products run
   happily on it.
  
  Hm - the goal I had for Hotfixes was to address imperative 
  problems that couldn't really be addressed any other way. I'm 
  not sure that this _quite_ makes the grade in my opinion (but 
  I could probably be convinced). For example, a security problem 
  _demands_ a hotfix-type solution because you can't tell the 
  crackers out there "dont do that!". In this case, there is 
  a clear way to avoid the problem that *is* under your control
  and a clear way to recover in case you forget :)
It definitely is not an issue for me, because my Zope Sites
are still small (I never did pack up to now).

But large Zope sites with lots of temporary objects may need repacking
before they consume too much disk space.

Maybe, a patch would be a compromise.
Sites that need to care can apply the patch. Those that do not,
simply ignore it.
The patch could be announced with the problem report.


Dieter

___
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] ANN: Forthcoming Zope Book

2000-07-06 Thread Eric L. Walstad

YAY! Can't wait to see the new docs!  Thanks!!  -E

___
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] Is Zope slow?

2000-07-06 Thread Ben Leslie

   -maybe we could discuss network services/hoster_performance?
 
 This is more of a problem for most people. One evening whilst bored we
 calculated that Zope could happily serve enough people to fill up our
 pipe... so the bottle neck is our connection.
 
 Mind you we'd had a beer or two so calculations could be flawed.

That sounds about right (with no idea what size pipe you have ;). I also 
was worried about the speed of Zope however after doing the calculations, 
I figured our current Zope server can fill the pipe we have twice so it 
is definately a bandwidth problem.

(And I was sober when doing the calculations ;)

Benno

___
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] Error tracing...

2000-07-06 Thread Dieter Maurer

Peter Arvidsson writes:
  How do I trace errors in Zope? I get the following error message:
  "Empty entry when integer expected "
  It gives a hint of the problem but I cant see what value is empty.. how
  do I control the values? Is there some way to write out variables or do
  I just have to guess???
The traceback tells you, where the error was detected, as oneone
else already pointed out.


In your case, it seems that the problem was either
detected by ZPublisher or by Z SQL Method.
They have encountered a parameter/form name with
an ":int" suffix. This tells them to convert the
value into an integer. However, in your case,
the value was empty. Your error, "Empty (form) entry, when
integer expected".


Dieter

___
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] Is Zope slow?

2000-07-06 Thread Curtis Maloney

On Thu, 06 Jul 2000, Firestar wrote:
 Hi, thanks for your comment.

 Absolutely.  Apache is many times faster than Zope. (Don't know much
  about AOLserver, but anything with AOL. :)
 
 However, Apache can't do squat compared with Zope when it comes to
  dynamic content.

 Not true. I have been programming using PHP and PERL, and together with
 Apache(DSO) they are quite fast. They do offer sessions tracking,
 authentication, database API + other features. It's just that due to the
 increasing 'hype':) on Zope and the vast array of features that it seems to
 offer, i'm sort of "attracted" by it:)

ahem  As I said, compared with Apache, for static content, it is slow.  
However, just like with CGI, PHP, and various other technologies, ZOPE can 
work through Apache.

As I've had to tell many of my friends, once I became a ZOPE convert, Zope 
does not allow you to do anything you can't already do, but it makes those 
things SO much easier. (o8

 Of course if i have time, i will play ard with it and see how good it is.
 Problem is that time is not really on my side and i need to decide on my
 next development tool fast(i have yet to try out other stuff e.g. ASP, JSP,
 Servlet..) I heard that the learning curve for Zope is quite steep, plus
 the documentation is not(?) that comprehensive, compared to e.g. PHP. What
 are your comments though? i may be wrong here...

Well, I find that Zope allows a MUCH quicker development cycle, along with 
various other advantages, such as remote edit of pages from any browser on 
the net.

Yes, the documentation is lacking.  However, IMHO, a competent programmer 
(especially one with a decent grasp of OO) will pick it up quickly with just 
a couple of reference documents.  (The Zope Quick Reference comes to mind :)

A friend of mine was a hardcore PHP nut, before I introduced him to Zope, and 
was amazed at how simple it made work.  I think the thing that slowed his 
learning of zope the most was often expecting solutions to problems to be 
complex.


 regards,
 firestar

By all means, try it out.  And when you're done, tell us what you think.  
What you like, where you think other technologies win out, and why.  Zope is 
developing quickly, and the features are easy to add because of the open 
nature of the project, and the whole product system.

Have a better one,
Curtis Maloney

dtml-var standard_work_disclaimer

___
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] calendarTag exception

2000-07-06 Thread Darrell Gallion

Trying to use the calendarTag and get this error.
I'm using the example code from
http://yyy.zope.org/Members/judell/CalendarTagExample
Before I redesign this thing, it seemed I must be doing something dumb.
I'm using this version Calendar-0.9.13.tar.tgz and Zope-2.2.0b1

--Darrell

Error Type: KeyError
Error Value: BASE1

Traceback (innermost last):
 ...
  File E:\zope\public\lib\python\DocumentTemplate\DT_String.py, line 504, in
__call__
(Object: index_html)
  File E:\zope\public\lib\python\Products\Calendar\CalendarTag.py, line 227,
in render
  File E:\zope\public\lib\python\Products\Calendar\CalendarTag.py, line 346,
in render_dwm
  File E:\zope\public\lib\python\Products\Calendar\CalendarTag.py, line 374,
in render_day_
  File E:\zope\public\lib\python\DocumentTemplate\DT_Util.py, line 263, in
namespace
  File E:\zope\public\lib\python\Products\Calendar\CalendarTag.py, line 177,
in render
KeyError: (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] Is Zope slow?

2000-07-06 Thread Marco Mariani

On Thu, Jul 06, 2000 at 04:13:31AM -0400, Firestar wrote:

 Of course if i have time, i will play ard with it and see how good it is.
 Problem is that time is not really on my side and i need to decide on my
 next development tool fast(i have yet to try out other stuff e.g. ASP,
 JSP, Servlet..) I heard that the learning curve for Zope is quite steep,
 plus the documentation is not(?) that comprehensive, compared to e.g.
 PHP. What are your comments though? i may be wrong here...

Of course, the PHP book I have is really nice, phplib is a godsend too,
but I've tried it and I'm here now.

If you take the time to go beyond the "i will do it with external method
in python because that's all I know" stage, you will find at home sooner
or later depending on wether:

 - you already know python (I did)
 - you understand the difference between dtml-var pippo and dtml-var "pippo"
 - you understand how to wisely use REQUEST and RESPONSE
 - you don't need complex new products or zclasses
 - you post any doubt here (nice place isn't it?)
 - you give a deep read at the ZSQL documentation
 - you can apply full-time (I couldn't)

given that, most of the howtos and tips are redundant :-)

Of course I'm a newbie, but I'm a confident newbie.
 



-- 
"This company has performed an illegal operation and will be shut down.
 If the problem persists, contact your vendor or appeal to a higher court."
 - Signal11 on slashdot

___
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:How do I merge form URL vars into sql easily

2000-07-06 Thread Michael Blewett

Hi Jake,
I originally had trouble coming to grips with the concept of variables and 
forms and passing them from one object to the next. After much testing, 
trial and error (and guidance from this list), I came up with these 
conclusions (which I'm sure someone will shoot down if I am wrong):
1) The request object you are setting with your REQUEST.set command is like 
a big bucket that gets passed between one web page and the next when you 
call it in your DTML. The best thing someone ever showed me was how to view 
in the called document ie.

  insert the line:

dtml-var REQUEST

into the dtml/method you are trying to call.

If you do that you can see all of the variables that get passed normally as 
part of your REQUEST variable, as well as any that get added to it by your 
form in the act of your POST command in the form. Be prepared  - it is a 
long list! You should be able to see all your form variables in there. If 
you don't then you haven't been doing your form correctly (been there done 
that too!).
The only real 'nasty' I have come across so far id the checkbox - if it is 
unchecked it doesn't post anything to the REQUEST object, and then you need 
to check for it and set it,  if you are using it  to update an SQL database 
(this is the only time I use the dtml-call 
"REQUEST.set['argument','value']"command. This is normal behaviour with 
forms and is not the fault of Zope.


Hope this helps...

  - Michael




   -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
  [EMAIL PROTECTED]
  Sent: Wednesday, July 05, 2000 5:32 PM
  To: [EMAIL PROTECTED]
  Subject: [Zope] How do I merge form  URL vars into sql easily
 
 
  I am a new user to Zope and I'm trying to pass data that has been
  entered into a form (either through GET or POST) into another
  object.  This object calls a z sql method to insert the form data into
  the database.  So far, the only way I've found to pass data to the
  sql is to define arguments for it and then, in the dtml-document (or
  method) use:
  dtml-call "REQUEST.set['argument','value']"
  (and it took me long enough to figure THAT out, let me tell you)
  The problem is that sucks when there are 30 form varibles that
  need to be inserted into the database.
   I would think that there is some way to let the sql method see
  these varibles that are defined within my document.  Or loop
  through all URL or form varibles defined and sets all the vars in
  request. Something to keep from having to write the above dtml 30
  times.  Thanks.
 
  Jake Feasel
 
~~~
Michael Blewett
Computer Support Mgr - Biological Sciences
Monash University (Clayton Campus)
Victoria Australia 3168

" Can I trade this job for what's behind door #2? "


___
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] RE:How do I merge form URL vars into sql easily

2000-07-06 Thread R. David Murray

On Fri, 7 Jul 2000, Michael Blewett wrote:
 trial and error (and guidance from this list), I came up with these 
 conclusions (which I'm sure someone will shoot down if I am wrong):
 1) The request object you are setting with your REQUEST.set command is like 
 a big bucket that gets passed between one web page and the next when you 
 call it in your DTML. The best thing someone ever showed me was how to view 

Not that you are wrong, but just a bit of clarification for those
people who also haven't quite grasped the stateless nature of
http transactions:  it is probably better to say that the REQUEST
object gets passed (by the DTML machinery invisibly or by calling
dtml methods using the "methodname(_.None,_)" pattern) around
between one *method* and the next.

Once you generate an output page, the user views it, and then clicks
again, you have a brand new REQUEST object that can only get values
from the *new* web page.  Others have been tripped by this, expecting
the REQUEST fields to automatically carry over from one form to
the next.  They don't, unless you explicitly put hidden fields into
your form to store the variables values for the next REQUEST.
But as long as you are still server side and making DTML calls,
REQUEST is there.

--RDM


___
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 questions

2000-07-06 Thread Frank McGeough

Hi,

I've setup zope and zwiki to use for internal collaboration. I'm
having fun and doing some useful stuff without knowing too much or
appearing too stupid. I've decided to do something more adventuresome
to learn some more. I'd like to tie in our SourceSafe version control
system so I could do reports that list what has been checked in since
a date or label. So I have to get input from the user from this and
then use SourceSafe com interfaces to gather the data and put it in a
nice format. Is this a good project for zope? It would be very useful
for checking progress on projects when I'm off-site because using the
SourceSafe UI over a modem has horrid performance problems. Along
those lines would it be possible to use the Zope tree control to mimic
the SourceSafe project tree stuff so the whole thing could be
accessible using a modem?

Also, is there a backup facility for the zodb? I have built a few
pages using zwiki and I'd like to ensure that they would survive a
hard disk crash or other nastiness. Thanks.

Frank


___
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] RE:How do I merge form URL vars into sql easily

2000-07-06 Thread Michael Blewett

At 20:39 6/07/2000 -0400, R. David Murray wrote:
snip


Once you generate an output page, the user views it, and then clicks
again, you have a brand new REQUEST object that can only get values
from the *new* web page.  Others have been tripped by this, expecting
the REQUEST fields to automatically carry over from one form to
the next.  They don't, unless you explicitly put hidden fields into
your form to store the variables values for the next REQUEST.
But as long as you are still server side and making DTML calls,
REQUEST is there.

Maybe I should have mentioned that my bucket gets emptied after each new 
page is requested...just to keep the analogy going...

Thanks for clarifying that - always happy to be corrected, especially if it 
makes things clearer.

  - Michael
~~~
Michael Blewett
Computer Support Mgr - Biological Sciences
Monash University (Clayton Campus)
Victoria Australia 3168

" Can I trade this job for what's behind door #2? "


___
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 questions

2000-07-06 Thread Chris McDonough

Hi Frank,

It sounds like your SourceSafe tie in could potentially be a fairly
complex undertaking.  Amos Latteier wrote an example COMObject product
that will show you the mechanics of utilizing COM objects from Zope. 
This might help.  And though I know you don't want to VC Zope objects,
you might be interested in Steve Spicklemire's CVSMixin product that
seems to utilize CVS for version control of several kinds of Zope
objects.  You may get tips from both of these products.  Seach Zope.org
for both.

To back up the ZODB, just copy the Data.fs file in the var directory. 
You may safely do this while Zope is running.  To restore, reinstall
Zope and all the products you're using and copy the Data.fs into the var
directory.

HTH,

Chris


Frank McGeough wrote:
 
 Hi,
 
 I've setup zope and zwiki to use for internal collaboration. I'm
 having fun and doing some useful stuff without knowing too much or
 appearing too stupid. I've decided to do something more adventuresome
 to learn some more. I'd like to tie in our SourceSafe version control
 system so I could do reports that list what has been checked in since
 a date or label. So I have to get input from the user from this and
 then use SourceSafe com interfaces to gather the data and put it in a
 nice format. Is this a good project for zope? It would be very useful
 for checking progress on projects when I'm off-site because using the
 SourceSafe UI over a modem has horrid performance problems. Along
 those lines would it be possible to use the Zope tree control to mimic
 the SourceSafe project tree stuff so the whole thing could be
 accessible using a modem?
 
 Also, is there a backup facility for the zodb? I have built a few
 pages using zwiki and I'd like to ensure that they would survive a
 hard disk crash or other nastiness. Thanks.
 
 Frank
 
 ___
 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 questions

2000-07-06 Thread David Trudgett

At 2000-07-06 22:23 -0400, Chris McDonough [EMAIL PROTECTED] wrote:


To back up the ZODB, just copy the Data.fs file in the var directory.
You may safely do this while Zope is running.  To restore, reinstall
Zope and all the products you're using and copy the Data.fs into the var
directory.

I don't understand this advice. Couldn't the file change while being read? 
Wouldn't a better way be to pack the database and use the Data.fs.old file 
as the backup?

David Trudgett


___
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] Unable to upload images from client to server

2000-07-06 Thread Kelvin Cheong


Hello All!

I have this problem with "UPLOADING".

In my HTML form (DTML-embedded-Document) I have data and images to insert
into a mySQL DATABASE. Therefore I'm calling SQL statements from my DTML
METHOD.

However, it seems the SQL insert command does not allow LOAD_FILE procedure
as does the SQL update command e.g.: 

UPDATE table_name 
SET blob_column=LOAD_FILE('full_path_of_file') WHERE
table_column='table_column value'

So I had to resort to using TWO separate SQL methods : 
1) to insert the "data" alone into the database first, from the form; 
2) then another to insert the image of the same form using the SQL "update"
command, verified my the data record's unique id.

All this works fine but this method does not work with the
...ENCTYPE="multipart/form-data"... value at the html form header.
Instead it only works with
...ENCTYPE="application/w-xxx-form-urlencoded" If I use
"multipart/form-data" it will enter the string of the command
LOAD_FILE('...file...') instead of the actual image contents. Why is this?

This is only one small part which I'm puzzled about as this method would
only allow images on the server's harddisk to be uploaded. The main concern
is UPLOADING from the client.

Having mentioned so, the next problem I'm facing is uploading the file onto
the Zope Server from the client. Having searched on the net, it appears
that I will have to use CGI's on my server side to temporarily grab the
files contents and place it somewhere. Is there anyway to use DTML without
the involvement of external CGI's?

Also, it seems that if I had to do this on Zope, it will require me to use
Python. Which of course sounds hard.

Then the questions arise regarding CGI's (IF IT REALLY IS REQUIRED): 
1) How on earth do I do this?; 
2) What if there were multiple users uploading files at the same time, then
what happens to the single temporary file which stores the uploaded files'
contents. 
3) If I were to use a /cgi-bin/... how will that relate to where ZOPE is
installed, in other words, would the directory structures get confusing?

I'm not a hopeless programmer but neither am I close to even "quite good".
Learning won't be a problem, but I'll need the answers quick, as I do not
have the time in my hands. Can anyone please help me out?

I've looked in discussion forums and the DTML reference, as I have said I'm
practically a beginner programmer, and was unable to understand even half
of what had been posted.

VCN - The Leader In Corporate Communication Solutions
Visit our website at http://www.vcn.com.my. 
or http://www.vcnlinux.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] ANN: Forthcoming Zope Book

2000-07-06 Thread Bill Anderson

Graham Chiu wrote:

[...]

 We're excited about the book and think that it will fill an important
 hole the current official Zope docs.
 
 As soon as a content license is chosen we'll make our rough drafts
 available.
 
 -Amos
 
 Why not invite authors of popular/important products to contribute their
 own chapters?
 
 Or, is this too radical g


I think it is a great idea. Give each of them an 'appendix' describing
how they implemented their product, and why they chose that method.


-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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 questions

2000-07-06 Thread Chris McDonough

AFAIK, it would be a bad idea a) if writes were not appends and b) if
records written to the FileStorage were not written atomically.  But
neither is the case, so it's safe to just copy it without shutting it
down.  The only time this may not be the case is if it were copied
during a pack operation.

David Trudgett wrote:

 I don't understand this advice. Couldn't the file change while being read?
 Wouldn't a better way be to pack the database and use the Data.fs.old file
 as the backup?
 
 David Trudgett

___
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 questions

2000-07-06 Thread R. David Murray

On Fri, 7 Jul 2000, David Trudgett wrote:
 I don't understand this advice. Couldn't the file change while being read? 
 Wouldn't a better way be to pack the database and use the Data.fs.old file 
 as the backup?

If you are a belt-and-suspenders type, sure grin.

Data.fs only gets appended to, and Zope is smart enough to
ignore incomplete transactions on the end of the file when
it starts up.  So the database is *always* in a consistent
state on disk from Zope's point of view, making it safe to
back it up by just copying the live Data.fs.

--RDM


___
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] Is Zope slow?

2000-07-06 Thread Luke Tymowski

Hello,

I'm considering using Zope as the development tool for my next web 
project. However, I read from a recent benchmark test (from Qube, i think) 
that Zope(running thru Zserver?) is much SLOWER than Apache and 
AOLserver.  Is that true? To all Zope users and 'guru's, what is yr 
experience using Zope?

I run the QubeQuorner weblog where those numbers came from.

Zope isn't slow. It's slower than Apache serving static pages. But Zope is 
dynamic. I haven't yet had time to do proper dynamic comparisons between 
the various servers.

I run a few Zope sites. And I'm adding more Zope sites. I wouldn't do that 
if I thought it was too slow.

There is a lot involved in making a site faster or slower. Adding a few 
graphics to your web page is going to make it slower than an all-text page. 
An all-text page vs a mixed text and graphics page can be almost twice as 
fast. Your connection to the site is going to affect "apparent" 
performance. For example, while I have a cable modem at home, and my Zope 
server sits on a fast T1 (there are slow T1s and fast ones), the connection 
in the evenings is too slow for me use my server. That's @Home's fault, not 
Zope's. And our T1 will fill up well before Zope runs out of steam on my box.

Technocrat.net is a Zope site. They were Slashdotted and survived without 
any apparent problems. And they were running Zope on a Pentium 120! I 
believe they upgraded to a PII-450 after that episode, just to be safe.

I have a list of Pystone benchmarks on my QQ site too:
http://weblogs.userland.com/qube/stories/storyReader$289

A PIII-850 gives tremendous Python performance, which should translate to 
impressive Zope numbers too. Zope.org, however, doesn't run on nearly the 
fastest hardware available, and it rarely seems slow to me.

Luke


___
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 shutting down Zope

2000-07-06 Thread Firestar

Hi, i have just installed Zope-2.1.6 on a linux server. Starting and
stopping Zope from command line - no problem, but when i chose to Shutodwn
from the Zope Control Panel, it complained of an error (printed below):

---
Traceback (innermost last):
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 179, in
publish
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 165, in
publish
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: manage_shutdown)
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: manage_shutdown)
File /usr/local/Zope-2.1.6/lib/python/App/ApplicationManager.py, line 330,
in manage_shutdown
(Object: ElementWithAttributes)
SystemExit: 0
--

I also tried installing the Zope Tutorial, but adding the product was not
successful. Is the tutorial still "raw" and may be troublesome to install?

Thanks in advance from a newbie.

regards,
firestar


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


___
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] Stability - can you give us some advice?

2000-07-06 Thread tacio

Hi,
I'm new to this list (to Zope too!)and I'm really impressed with its traffic.
This show us that this project is in active development.
In our company we are currently working to create a Web site with lots
of dynamic content, database access, webmail, etc..  so we decided to try Zope.
Although it's lack of documentation ( this would not be fair, with a search
engine we can dig out lots of useful info from the web) we experienced a
very fast development cycle. Now we're concerned about its stability. We
are almost finishing the first stage of project and some times Zope
hangs. It was  working ok, and then, all of a sudden, it just stops answers 
requests. Last time it happend we changed a DTML Method to a DTML Document
and it worked again (if you like i'll try to tell you exactly what was happenning). 
So, I'd like some advice to make it more stable. ( or tell me what i might
be doing wrong)

Our environment:

   OS: Debian GNU/Linux 2.2 (Potato) - Kernel 2.2.16
   Plataform: Dual PentiumIII - ASUS motherboard - scsi Adaptec AIC-7892)
   Python: got from Debian -  python-base_1.5.2-10_i386.deb
   Zope: got from Debian -  zope_2.1.6-5_i386.deb
   DB: Postgresql V7.0.2 - compiled and installed by hand - tools from Debian, 
(make,gcc,..)
   DB-DA:  zope-pygresqld 0.3rjr2-1
   Front-End: Apache 1.3.12 + mod_ssl + mod_proxy + mod_rewrite
  (with mm-1.1.3 Shared Memory Library ) 
  Install type : DSO - Dynamic shared Object
  (compiled and installed by hand - tools from Debian, (make,gcc,..)

Some questions: (with stability in mind..)

  1) Should we try Zope 2.2.0b3 instead of 2.1.6 ?
  2) Should we avoid using packaged versions of Zope?
  3) Should we try ZPoPyDA as a DA to Postgresql?
  4) Could you give us some advices on good DTML coding: what should
 we avoid doing, what is a must, for example, whether or not (or when)
 to generate urls for objects (http://www.zope.org/Members/jim/ObjectURLs)

Thanks a lot for your attention,

Tacio AGSantos
[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] Patch to DateTime.py

2000-07-06 Thread Curtis Maloney

Greetings,

In my current project, I have to print a lot of dates.  Fine, not a 
problem... _.DateTime().strftime() is just the method, right?

Wrong.

The people who want this site want the local time, not UTC+0 that strftime 
enforces.

So, I created a tiny patch which adds  _.DateTime().strfltime(), which works 
identically, except it passes LOCALTIME instead of GMTIME.

It's tiny, it's simple, but it's REALLY HANDY!

Have a better one,
Curtis Maloney.

dtml-var standard_work_disclaimer


1183a1184,1185
 def strfltime(self, format):
   return strftime(format, localtime(self.timeTime()))



Re: [Zope] Problem calling SESSION object

2000-07-06 Thread Anthony Baxter

Ugh. This is a stupid bug on my part. Upgrade to 0.2.9

Anthony

 [EMAIL PROTECTED] wrote
 Hi All,
 
 Need Help.
 
 I'm currently using SQLSession v 0.2.3, with access database ( I had
 changed the "value" filed in session_data to item_value and also all sql
 statements that refer to it).
 
 I had no problem generate the session id, but however, I had problem
 calling session object after I insert it into session_data.
 
 I got an error when calling the dtml-var "SESSION['xxx']", i got this :
 
 
  Zope Error
 
  Zope has encountered an error while publishing this resource.
 
  Error Type: NameError
  Error Value: upper
 
 !--
 Traceback (innermost last):
   File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 214, in
 publish_module
   File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 179, in publish
   File E:\MYBOOK~2\lib\python\Zope\__init__.py, line 202, in
 zpublisher_exception_hook
 (Object: ElementWithAttributes)
   File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 165, in publish
   File E:\MYBOOK~2\lib\python\ZPublisher\mapply.py, line 160, in mapply
 (Object: add_cart_html)
   File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 102, in
 call_object
 (Object: add_cart_html)
   File E:\MYBOOK~2\lib\python\OFS\DTMLDocument.py, line 166, in __call__
 (Object: add_cart_html)
   File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_String.py, line 502, in
 __call__
 (Object: add_cart_html)
   File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_Util.py, line 335, in
 eval
 (Object: SESSION['bk_isbn'])
 (Info: SESSION)
   File string, line 0, in ?
   File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_Util.py, line 161, in
 careful_getitem
   File d:\mybookstore\lib\python\Products\SQLSession\SQLSession.py, line
 99, in __getitem__
   File d:\mybookstore\lib\python\Products\SQLSession\SQLSession.py, line
 389, in sqlattr
 (Object: NoBrains)
 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 )
 

-- 
Anthony Baxter [EMAIL PROTECTED]   
It's never too late to have a happy childhood.

___
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] Stability - can you give us some advice?

2000-07-06 Thread David Trudgett

At 2000-07-07 01:50 -0300, [EMAIL PROTECTED] wrote:

Hi,
I'm new to this list (to Zope too!)and I'm really impressed with its traffic.
This show us that this project is in active development.
In our company we are currently working to create a Web site with lots
of dynamic content, database access, webmail, etc..  so we decided to try 
Zope.
Although it's lack of documentation ( this would not be fair, with a search
engine we can dig out lots of useful info from the web) we experienced a
very fast development cycle. Now we're concerned about its stability. We
are almost finishing the first stage of project and some times Zope
hangs. It was  working ok, and then, all of a sudden, it just stops answers
requests. Last time it happend we changed a DTML Method to a DTML Document
and it worked again (if you like i'll try to tell you exactly what was 
happenning).
So, I'd like some advice to make it more stable. ( or tell me what i might
be doing wrong)

Funny you should mention that. We just had a similar thing happen to us 
this morning. We have an installation of Zope 2.1.6 running on Red Hat 
Linux 6.0 on an old 486/66 machine (a prototype serving some intranet 
content). We aren't doing any database connections on it (through Zope, 
that is), but we are running Squishdot (which is the main application in 
terms of usage on this particular machine). Zope is running behind Apache 
1.3.9, and I noticed that multiple instances of Zope.cgi started up to 
service incoming requests, but apparently Zope wasn't responding. I just 
restarted Apache and everything was fine again.

Is this a known problem with Zope that has been addressed in 2.2?

Thanks.

David Trudgett


___
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] Problems shutting down Zope

2000-07-06 Thread Chris McDonough

This is a 'normal' message.  Zope 2.2 releases suppress the error
message on shutdown.

Not sure what's up with the tutorial.  You may want to try the latest
2.2 beta release as the tutorial comes preinstalled.

Firestar wrote:
 
 Hi, i have just installed Zope-2.1.6 on a linux server. Starting and
 stopping Zope from command line - no problem, but when i chose to Shutodwn
 from the Zope Control Panel, it complained of an error (printed below):
 
 ---
 Traceback (innermost last):
 File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 214, in
 publish_module
 File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 179, in
 publish
 File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 165, in
 publish
 File /usr/local/Zope-2.1.6/lib/python/ZPublisher/mapply.py, line 160, in
 mapply
 (Object: manage_shutdown)
 File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 102, in
 call_object
 (Object: manage_shutdown)
 File /usr/local/Zope-2.1.6/lib/python/App/ApplicationManager.py, line 330,
 in manage_shutdown
 (Object: ElementWithAttributes)
 SystemExit: 0
 --
 
 I also tried installing the Zope Tutorial, but adding the product was not
 successful. Is the tutorial still "raw" and may be troublesome to install?
 
 Thanks in advance from a newbie.
 
 regards,
 firestar
 
 __
 FREE Personalized Email at Mail.com
 Sign up at http://www.mail.com/?sr=signup
 
 ___
 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 )