Re: [Zope] ZClass, Product comparison

2000-10-05 Thread Maik Roeder

Hi Nestor !

"Nestor A. Diaz L." wrote:
> 
> HI, thanks you for the latest answer on testing products, however i have a
> doubt i know how to make ZClass however i think they are more restrictive,
> can anyone telling me advantanges or disadvantes of using Zclass instead
> of products?

Have a look at:

http://zdp.zope.org/portals/developers/designstrategies

All about the different tradeoffs between developing your class as a Zope
product in Python, as a ZClass, and mixing the two approaches. Add to this
portal subject if you find out more.

Regards,

Maik Röder
-- 
Uzopia - Digging la vida Zopa - http://uzopia.editthispage.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] ZClass, Product comparison

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

HI, thanks you for the latest answer on testing products, however i have a
doubt i know how to make ZClass however i think they are more restrictive,
can anyone telling me advantanges or disadvantes of using Zclass instead
of products?

Thank you,

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


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




Re: [Zope] ZClass <--> Product

2000-08-31 Thread Karl Anderson

Steve Spicklemire <[EMAIL PROTECTED]> writes:

> Umm.. did you try it? I use it all the time...  it does really work. You just
> can't use the ZClass 'folder' directly, you need to 'skip' to propertysheets/methods.

Amazing!  Yeah, I tried it by walking from the root, but as you
demonstrate, if you go directly to the method, you can edit it.

I swear this didn't work before.  I haven't thrown away days of my
life editing in the textarea.  Really.

-- 
Karl Anderson  [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] ZClass <--> Product

2000-08-31 Thread Steve Spicklemire


Umm.. did you try it? I use it all the time...  it does really work. You just
can't use the ZClass 'folder' directly, you need to 'skip' to propertysheets/methods.

-steve

example:

--

anotherhost.foo.com> ftp onehost.foo.com 13021
Connected to onehost.foo.com.
220 onehost.foo.com FTP server (Medusa Async V1.12.4.1 [experimental]) ready.
Name (onehost.foo.com:steve): 
331 Password required.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
227 Entering Passive Mode (208,150,70,197,9,101)
150 Opening ASCII mode data connection for file list
drwxrwx---   1 Zope Zope0 Dec 30  1998 Control_Panel
--   1 foouser Zope0 Jul  7 18:08 acl_users
-rw-rw   1 Zope Zope 1024 May  3  1999 index_html
-rw-rw   1 Zope Zope 1381 May  3  1999 standard_error_message
-rw-rw   1 Zope Zope   55 Dec 30  1998 standard_html_footer
-rw-rw   1 Zope Zope   81 Dec 30  1998 standard_html_header
226 Transfer complete
ftp> cd Control_Panel
250 CWD command successful.
ftp> dir
227 Entering Passive Mode (208,150,70,197,9,102)
150 Opening ASCII mode data connection for file list
drwxrwx---   1 Zope Zope0 Aug 31 14:55 ..
--   1 Zope Zope0 Dec 30  1998 Database
--   1 Zope Zope0 Dec 30  1998 DebugInfo
drwxrwx---   1 Zope Zope0 Aug 31 13:59 Products
--   1 Zope Zope0 Dec 30  1998 Versions
226 Transfer complete
ftp> cd Products/My_ZClasses/My_ZClass/propertysheets/methods
250 CWD command successful.
ftp> dir
227 Entering Passive Mode (208,150,70,197,9,103)
150 Opening ASCII mode data connection for file list
--   1 foouser Zope0 Aug 31 14:55 ..
-rw-rw   1 steveZope  165 Aug 31 14:55 defaultRedirect 
-r--r-   1 foouser Zope  214 Aug 31 14:55 findPrevArea 
-rw-rw   1 foouser Zope 2548 Aug 31 14:55 index_html 
-rw-rw-r--   1 foouser Zope  123 Aug 31 14:55 l-tab.gif 
-rw-rw-r--   1 foouser Zope   98 Aug 31 14:55 lb-tab.gif 
-rw-rw-r--   1 foouser Zope   93 Aug 31 14:55 r-tab.gif 
-rw-rw-r--   1 foouser Zope   91 Aug 31 14:55 rb-tab.gif 
-rw-rw-r--   1 foouser Zope   60 Aug 31 14:55 t-tab.gif 
-rw-rw-r--   1 foouser Zope   90 Aug 31 14:55 tabs-lb.gif 
-rw-rw-r--   1 foouser Zope   91 Aug 31 14:55 tabs-rb.gif 
-rw-rw-r--   1 foouser Zope   84 Aug 31 14:55 tabs.gif 
226 Transfer complete
ftp> pwd
257 "/Control_Panel/Products/My_ZClasses/My_ZClass/propertysheets/methods" is the 
current directory.
ftp> quit
221 Goodbye.
anotherhost.foo.com> 

> "Karl" == Karl Anderson <[EMAIL PROTECTED]> writes:

Karl> Steve Spicklemire <[EMAIL PROTECTED]> writes:

>> How about:
>> 
>> /you@server
>> 
port:/Control_Panel/Products/YourProduct/YourZClass/propertysheets/methods/yourMethod

Karl> How about it?

Karl> Hint: that ZClass doesn't look like a directory to FTP.

>>  -steve
>> 
>> > "Karl" == Karl Anderson <[EMAIL PROTECTED]> writes:
>> 
>> 
Karl> What FTP editing options are there for ZClass definitions?
Karl> I've never been able to do much.  What I have done is use
Karl> folderish ZClasses, edit DTML methods contained in the
Karl> *instance* thru FTP, and then moved them to the definition
Karl> latler, but that's kind of hacky - it adds a little more
Karl> confusion about finding things with large projects.
>>
Karl> -- Karl Anderson [EMAIL PROTECTED]
>>
Karl> ___ Zope
Karl> maillist - [EMAIL PROTECTED]
Karl> http://lists.zope.org/mailman/listinfo/zope ** No cross
Karl> posts or HTML encoding!  ** (Related lists -
Karl> http://lists.zope.org/mailman/listinfo/zope-announce
Karl> 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 )
>> 

Karl> -- Karl Anderson [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] ZClass <--> Product

2000-08-31 Thread Karl Anderson

Steve Spicklemire <[EMAIL PROTECTED]> writes:

> How about:
> 
> /you@server 
>port:/Control_Panel/Products/YourProduct/YourZClass/propertysheets/methods/yourMethod

How about it?

Hint: that ZClass doesn't look like a directory to FTP.

> 
> -steve
> 
> > "Karl" == Karl Anderson <[EMAIL PROTECTED]> writes:
> 
> 
> Karl> What FTP editing options are there for ZClass definitions?
> Karl> I've never been able to do much.  What I have done is use
> Karl> folderish ZClasses, edit DTML methods contained in the
> Karl> *instance* thru FTP, and then moved them to the definition
> Karl> latler, but that's kind of hacky - it adds a little more
> Karl> confusion about finding things with large projects.
> 
> Karl> -- Karl Anderson [EMAIL PROTECTED]
> 
> Karl> ___ Zope
> Karl> maillist - [EMAIL PROTECTED]
> Karl> http://lists.zope.org/mailman/listinfo/zope ** No cross
> Karl> posts or HTML encoding!  ** (Related lists -
> Karl> http://lists.zope.org/mailman/listinfo/zope-announce
> Karl> 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 )
> 

-- 
Karl Anderson  [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] ZClass <--> Product

2000-08-30 Thread Steve Spicklemire


How about:

/you@server 
port:/Control_Panel/Products/YourProduct/YourZClass/propertysheets/methods/yourMethod

-steve

> "Karl" == Karl Anderson <[EMAIL PROTECTED]> writes:


Karl> What FTP editing options are there for ZClass definitions?
Karl> I've never been able to do much.  What I have done is use
Karl> folderish ZClasses, edit DTML methods contained in the
Karl> *instance* thru FTP, and then moved them to the definition
Karl> latler, but that's kind of hacky - it adds a little more
Karl> confusion about finding things with large projects.

Karl> -- Karl Anderson [EMAIL PROTECTED]

Karl> ___ Zope
Karl> maillist - [EMAIL PROTECTED]
Karl> http://lists.zope.org/mailman/listinfo/zope ** No cross
Karl> posts or HTML encoding!  ** (Related lists -
Karl> http://lists.zope.org/mailman/listinfo/zope-announce
Karl> 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] ZClass <--> Product

2000-08-30 Thread Karl Anderson

Chris Withers <[EMAIL PROTECTED]> writes:

> Karl Anderson wrote:
> > What FTP editing options are there for ZClass definitions?  
> 
> Your email address suggests you should be able to find out more easily
> than me ;-)

Well, I'm pretty sure the answer is "none", but I'm asking to the list
so if someone does have some kind of workaround, the reply will be
public.

> Maybe you could suggest better editing support for FTP or is WebDAV the
> way of the future?
> Mention was made of Adobe GoLive! in Paris, what's that like for doing
> this sort of this?

FTP is limited for this sort of thing because it works on files with
no metadata.

I *think* that the only reason one can't edit DTML methods in a ZClass
definition is that the intermediate steps don't support a FTP
directory interface.  That'd be a nice first step.

I've heard some ideas about how we could edit properties, permissions,
etc. with FTP, some more hackish than others.  Best is probably some
sort of XML text file associated with an item.

But from what I've been reading, the focus will be on through the web
editing whenever possible.  I personally find it much more convenient
to work with python baseclasses & have a python shell looking at the
ZODB in an emacs buffer, so I have a history of what I've done and
seen and can look at the objects & attributes on any level.

And yes, the wave of the future does appear to be with the various
clients that are coming out, Radio Userland being the most recent that
I've heard about.

-- 
Karl Anderson  [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] ZClass <--> Product

2000-08-30 Thread Chris Withers

Karl Anderson wrote:
> What FTP editing options are there for ZClass definitions?  

Your email address suggests you should be able to find out more easily
than me ;-)

Maybe you could suggest better editing support for FTP or is WebDAV the
way of the future?
Mention was made of Adobe GoLive! in Paris, what's that like for doing
this sort of this?

cheers,

Chris

___
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] ZClass <--> Product

2000-08-29 Thread Karl Anderson

Chris Withers <[EMAIL PROTECTED]> writes:

> "Nestor A. Diaz L." wrote:
> > I want to know if there is any utility that let translate a ZClass to a
> > Product, i'm worry using the frames based interface, so i'm considering to
> > switch to a Product a utility that let that would be usefull howevere a
> > HOWTO on doing this would be fine.
> 
> Not sure abotu what you're asking...
> If you want to convert your ZClass-based product to a pythno based
> product so you don't have to do development through the managemetn
> interface, then the answer is sorry, no you can't.

I always put python base classes under my ZClasses, even if the
baseclass doesn't do anything at the start.  Then it's easy to
move attributes from the ZClass to the baseclass, or throw simple
test/debug/prototype methods in the ZClass temporarily.

Likewise, I usually put a ZClass on top of my python base classes,
even if the ZClass doesn't do much at the start (which is more often).

> However, if it's just the through-the-web part of developing a
> ZClass-based product that's causing you problems, have you considered
> editing the ZClasses using FTP or WebDAV?

What FTP editing options are there for ZClass definitions?  I've never
been able to do much.  What I have done is use folderish ZClasses,
edit DTML methods contained in the *instance* thru FTP, and then moved
them to the definition latler, but that's kind of hacky - it adds a
little more confusion about finding things with large projects.

-- 
Karl Anderson  [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] ZClass <--> Product

2000-08-29 Thread Chris Withers

"Nestor A. Diaz L." wrote:
> I want to know if there is any utility that let translate a ZClass to a
> Product, i'm worry using the frames based interface, so i'm considering to
> switch to a Product a utility that let that would be usefull howevere a
> HOWTO on doing this would be fine.

Not sure abotu what you're asking...
If you want to convert your ZClass-based product to a pythno based
product so you don't have to do development through the managemetn
interface, then the answer is sorry, no you can't.

However, if it's just the through-the-web part of developing a
ZClass-based product that's causing you problems, have you considered
editing the ZClasses using FTP or WebDAV?

cheers,

Chris

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

2000-08-28 Thread Nestor A. Diaz L.

HI,

I want to know if there is any utility that let translate a ZClass to a
Product, i'm worry using the frames based interface, so i'm considering to
switch to a Product a utility that let that would be usefull howevere a
HOWTO on doing this would be fine.

thanks,

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


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