[Zope] ZClass <--> Product

Steve Spicklemire steve@spvi.com
Thu, 31 Aug 2000 15:03:24 -0500 (EST)


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     Zope            0 Dec 30  1998 Control_Panel
----------   1 foouser Zope            0 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     Zope            0 Aug 31 14:55 ..
----------   1 Zope     Zope            0 Dec 30  1998 Database
----------   1 Zope     Zope            0 Dec 30  1998 DebugInfo
drwxrwx---   1 Zope     Zope            0 Aug 31 13:59 Products
----------   1 Zope     Zope            0 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 Zope            0 Aug 31 14:55 ..
-rw-rw----   1 steve    Zope          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 <karl@digicool.com> writes:

    Karl> Steve Spicklemire <steve@spvi.com> 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 <karl@digicool.com> 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 karl@digicool.com
    >>
    Karl> _______________________________________________ Zope
    Karl> maillist - Zope@zope.org
    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 -
    >> Zope@zope.org 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 karl@digicool.com