Re: [Zope] How to start developing in zope

2000-07-30 Thread Firestar

--Original Message--
From: Kapil Thangavelu [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED]
Sent: July 30, 2000 3:21:54 PM GMT
Subject: Re: [Zope] How to start developing in zope

acquistion is an integral part of zope and is pretty powerful for
simplifying design and implementation.

Kapil

---
Hi, thanks for your reply.

Is acquisition similar to the concept of 'inheritance' in OOP? (or more?) I
heard of this 'algebra of acquisition' written by someone...is it essential
and where can i find it? TIA.

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] How to start developing in zope

2000-07-27 Thread Firestar

Hi, I have read through(and tried out) the tutorials and Guides at Zope.org,
and now eager to port my company's website over to Zope. (The website was
originally programmed in PHP)

In my original design, I used OOP mainly. I defined each section(e.g. News,
Events, Products) as a class by itself, inheriting from a "main" superclass.
Each class would contain their own set of attributes(such as font-color,
title) and methods(e.g. display news headline, or display events schedule).
Common attributes  method that are widely used are placed(shared) in the
"main" class(e.g. talking to MySQL database).

So, if there's any changes or updates, inheritance will propagate the
changes to the rest of the subclasses. (As usual, management will require
extra features such as personalised page, membership or web-based email to
be added in future. Hopefully, this kind of structure would make adding new
features a breeze.)

I believe Zope is based on a similar way (and much more powerful). I was
wondering how shld i start something like this in Zope - i read abt
ZClasses(where you can define your own Folders), Products(for defining yr
business logic) and DTML(for dynamic data display). Your opinions will be
much appreciated.

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] ZClass tutorial

2000-07-24 Thread Firestar

Hi, some thoughts(and frustrations) from a newbie having his "first time"
with Zope.

The documentation needs a lot of improvement. Since October last year,
there's still only ONE chapter(which is on ZClasses) in the Zope Developer's
Guide?? Are there any more chapters forthcoming? Or do i have to fork out
money and purchase the commercial version one?:( (And don't refer me to ZDP,
please...)

As for the "Zope Content Manager Guide", the examples are easy enough for
newbies to understand, but some of the screenshots accompanying the examples
are not 'consistent'. Perhaps DC can do some proof-reading there.

As for the DTML reference, i felt "lost" after reading a few sections. At
first, I thought it would be as easy as when i first read the PHP manual,
but somehow it doesn't seem 'user-friendly' enough. Maybe i will try it
again after i have read the rest of the Reference Guides.

I'm not an expert in web development, and could not really pick up new
"technologies" fast. But i still remembered learning PHP was not that
difficult; the manual is comprehensive, easy-to-use and tutorials
contributed by other websites really speed up my learning process.

I understand that Zope is a different thing altogether from a programming
language like PHP. I have yet to read up the Z SQL Methods User Guide, but
from the docs that i have read so far, i still feel lost as to where and how
to start building an 'advanced' website, e.g. converting my current
PHP/MySQL website to Zope. Someting is missing here... Perhaps the Reference
Guides could add more explanation and details, instead of just "click here
and you will see this" kind of instructions. OR give more complex
(real-world)examples, like building an e-commerce site(with sessions, cart 
authentication).

sigh...i foresee a rocky road ahead for this newbie to master the 'Zen' of
Zope. Hopefully it's not a long one:(

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] Zope is memory intensive?

2000-07-18 Thread Firestar

Hi, i have installed Zope on a RH6 box, and looking at the processes,
Zope(running as 'python') consumes abt 20% of the memory usage! A single
apache daemon only takes abt 9-10%. Is Zope supposed to be so memory
intensive?

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] Creating Factory Objects (Products)

2000-07-18 Thread Firestar

Hi Dieter,

Surprisingly, even though there's an error message, the product still manage
to 'perform' its function, i.e. build a site from its template.
host:8080/manage still works ok; i guess Data.fs not corrupted. *scratch
head* - does zope like to raise false alarms?? Anyway, thanks for your help.

regards,
firestar

--Original Message--
From: Dieter Maurer [EMAIL PROTECTED]
To: [EMAIL PROTECTED] (Firestar)
Sent: July 18, 2000 6:41:51 PM GMT
Subject: Re: [Zope] Creating Factory Objects (Products)


Firestar writes:
 Haha, thanks for the 'wisdom' cookies:) Here are the last two lines of the
 traceback:

 File /usr/local/Zope-2.1.6/lib/python/OFS/Application.py, line 249, in
 __bobo_traverse__
 (Object: ApplicationDefaultPermissions)
 File /usr/local/Zope-2.1.6/lib/python/ZPublisher/HTTPResponse.py, line
511,
 in notFoundError
 NotFound: (see above)

I have to admit that in this case the end of the traceback
tells not much about the problem.

I found in the sources (ZPublisher.HTTPResponse)
that the resource not found is indicated as
an HTML *comment* in the error page.
I do not know, why the implementers hide this information.


Anyway, the traceback seems to suggest that the problem
is immediately at the top level of your URL.
Is it possible that your "Data.fs" is empty or otherwise in a
strange state?
What happens, if you access your site with
"host:port/manage"?


Dieter


__
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] Creating Factory Objects (Products)

2000-07-18 Thread Firestar

Hmm...Z Class was not mentioned in the guide that i'm reading now. Guess i
have to check out on that later...

thanks,
firestar

--Original Message--
From: Pierre Rougier [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED], [EMAIL PROTECTED]
Sent: July 18, 2000 9:22:21 AM GMT
Subject: Re: [Zope] Creating Factory Objects (Products)


Hi Fire,
This should work:

-Create a new product (here InstantSiteProduct) (from here, your product can
be
accessed through the "Add" list)
-In this product, add a Z Class (name it Instant Site)
-In this ZClass, create your DTML methods (Designer and Builder)

If u need to store properties in the Product, create a propertysheet in this
Z
Class.
U will be able to access these properties from your product methods by using
"dtml-var propertysheets.your_property "

and, if u want to change the properties in your methods, use

dtml-call propertysheets.your_property.manage_changeProperties(
prop1=val1,,propn=valn)

One more thing: all your changes on the product modify all the instances of
your
product...

These things should work
Hope this help

Pierre :)

 I'm following the tutorial in Zope Content Manager's Guide. I created an
 'InstantSite' product, with 2 DTML methods, Designer and Builder. I
followed
 most of the instructions, and managed to see the product in my 'Add List'.
 But when i tried to add it into my other folders, the Builder page(which
 would be called after Designer) could not be accessed. The error is:

 "Resource not found

 Sorry, the requested Zope resource does not exist.
 Check the URL and try again." followed by the tracebacks...

 In fact, the tutorial doesn't seem comprehensive and contain errors(e.g.
 screenshots different from description). Could anyone give this newbie
some
 pointers here? TIA.

 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] Zope is memory intensive?

2000-07-18 Thread Firestar

oops...my mistake for not listing out my configuration. basically i am
testing out zope on a junk machine - PPro 233
with 32MB RAM only:) At the same time, i'm running mysql, apache+php combo,
and each process only consumes abt 8-9% of the memory usage. That's why the
20% from Zope surprised me...

regards,
firestar

--Original Message--
From: Curtis Maloney [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED]
Sent: July 18, 2000 6:37:49 AM GMT
Subject: Re: [Zope] Zope is memory intensive?


On Tue, 18 Jul 2000, Firestar wrote:
 Hi, i have installed Zope on a RH6 box, and looking at the processes,
 Zope(running as 'python') consumes abt 20% of the memory usage! A single
 apache daemon only takes abt 9-10%. Is Zope supposed to be so memory
 intensive?

Well, it's all relative, isn't it? (o8

I mean, does Apache do the same work as Zope?  Does it cache Python objects,
is is maintaining database connections, etc etc etc.

I am running Zope on a RH6.1 box, with 96M RAM.  It's using about 12.5% of
my
memory, so far as I can tell.

However, a % isn't much of a guage unless you tell us how much actual memory
you have.

Personally, I find that Netscape is more of a problem memory wise than Zope
ever will be. (o8

 regards,
 firestar


Have a better one,
Curtis Maloney

dtml-var standard_work_disclaimer


__
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] Creating Factory Objects (Products)

2000-07-17 Thread Firestar

Haha, thanks for the 'wisdom' cookies:) Here are the last two lines of the
traceback:

File /usr/local/Zope-2.1.6/lib/python/OFS/Application.py, line 249, in
__bobo_traverse__
(Object: ApplicationDefaultPermissions)
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/HTTPResponse.py, line 511,
in notFoundError
NotFound: (see above)

Maybe because i'm a newbie, i tend to feel that Zope's error messages(or
traceback) are not as clear as (for e.g.) PHP's error messages. Perhaps you
can give me some pointers here?

regards,
firestar


--Original Message--
From: Dieter Maurer [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED]
Sent: July 17, 2000 11:23:04 PM GMT
Subject: Re: [Zope] Creating Factory Objects (Products)


Firestar writes:
 "Resource not found

 Sorry, the requested Zope resource does not exist.
 Check the URL and try again." followed by the tracebacks...
You first need to determine what resource is not found.
The tracebacks may help you with this.

After you know the resource, you will ask, "why".
If you are lucky, this becomes obvious, once you know "what".


Dieter


__
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] Newbie question: User Folder

2000-07-17 Thread Firestar

I'm going through the Zope Content Manager's Guide(on zope.org) and i came
across this 'User Folder' section that i have a few questions on.

e.g. Let's say we have 4 folders:
ZACme/Marketing/Sales/FrontDesk

Sally is defined as manager in 'Marketing'. I understand that her role is
'acquired' in Sales and FrontDesk, but not in ZAcme, therefore she would be
able to make changes in Sales and FrontDesk folders. My question is, can we
'turn off' this acquired role and do not allow Sally to access Sales(but
allow her to access FrontDesk, and Marketing of course)? Or must we assign a
different role to her?

TIA  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] linuxworld article

2000-07-16 Thread Firestar

http://www.linuxworld.com/linuxworld/lw-2000-07/lw-07-penguin_2.html

Hmm...what is your opinion on the article above? I'm interested to see the
author's comparison btwn Enhydra and Zope.

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

2000-07-07 Thread Firestar

--Original Message--
From: Chris McDonough [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED]
Sent: July 7, 2000 5:05:55 AM GMT
Subject: Re: [Zope] Problems shutting down Zope


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

Phew...for once, i thought my linux distribution or zope installation is
broken:)

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

Well, this is the error message i got:

-
Error Type: KeyError
Error Value: ELVIS_SIGHTINGS

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/Zope/__init__.py, line 202, in
zpublisher_exception_hook
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: addTutorial)
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: addTutorial)
File
/usr/local/Zope-2.1.6/lib/python/Products/ZopeTutorial/TutorialTopic.py,
line 176, in addTutorial
File /usr/local/Zope-2.1.6/lib/python/OFS/DTMLMethod.py, line 150, in
__call__
(Object: setup)
File /usr/local/Zope-2.1.6/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
(Object: setup)
File /usr/local/Zope-2.1.6/lib/python/DocumentTemplate/DT_In.py, line 691,
in renderwob
(Object: sample_data)
File /usr/local/Zope-2.1.6/lib/python/DocumentTemplate/DT_Util.py, line 335,
in eval
(Object: insert(_.getitem('sequence-item')))
(Info: insert)
File string, line 0, in ?
File /usr/local/Zope-2.1.6/lib/python/Shared/DC/ZRDB/DA.py, line 430, in
__call__
(Object: insert)
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/db.py, line 178, in
query
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/gadfly/gadfly.py,
line 349, in execute
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/gadfly/sqlmod.py,
line 596, in relbind
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/gadfly/gfdb0.py,
line 206, in get_for_update
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/gadfly/gfdb0.py,
line 1051, in __getitem__
KeyError: (see above)

--

If anyone has tried out the tutorial on Zope 2.1.6 and manage to solve this
problem, pls tell me!:)

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 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 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 )




[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 )