Checking in pages, scripts, and sql methods to SVN
Hello, Is there a Zope product out there that would allow me to check into SVN my Zope objects (i.e. TAL pages, Python scripts, and ZSQLMethods) ? If not, can anyone here show me some skeleton code to : 1. Enumerate these objects 2. Reference them as files so I can programmatically check them into SVN ? Regards, Danny
--On 17. November 2006 08:33:15 +0800 "Sinang, Danny" <D.Sinang@spi-bpo.com> wrote:
Hello,
Is there a Zope product out there that would allow me to check into SVN my Zope objects (i.e. TAL pages, Python scripts, and ZSQLMethods) ?
If not, can anyone here show me some skeleton code to :
1. Enumerate these objects 2. Reference them as files
so I can programmatically check them into SVN ?
Use CMF and portal_skins and put your stuff onto the filesystem and svn-it. -aj
Sinang, Danny said the following on 11/17/2006 01:33 AM:
Hello,
Is there a Zope product out there that would allow me to check into SVN my Zope objects (i.e. TAL pages, Python scripts, and ZSQLMethods) ?
If not, can anyone here show me some skeleton code to :
1. Enumerate these objects 2. Reference them as files
if you are not using a too recent zope, you could use APE to mount a filesystem based storage, and copy all your code there. APE will store your code on the filesystem. Then using either CMF, Plone or products such as FileSystemSite you can create Filesystem Directory views that "opens a readonly hole from the zodb to the fielsystem". Note that this is a somewhat messy one way operation; after succeeding you should keep working on the filesystem, enjoy better editors and source code control tools :-) Hope this helps. /dario -- -- ------------------------------------------------------------------- Dario Lopez-Kästen, IT Systems & Services Chalmers University of Tech. Lyrics applied to programming & application design: "emancipate yourself from mental slavery" - redemption song, b. marley
(Fri, Nov 17, 2006 at 08:33:15AM +0800) Sinang, Danny wrote/schrieb/egrapse:
Is there a Zope product out there that would allow me to check into SVN my Zope objects (i.e. TAL pages, Python scripts, and ZSQLMethods) ?
Build a filesystem python product out of it. Look at http://zopewiki.org/ZopeStarter for some pointers. Being able to do proper version control is one of the major advantages of that approach. There are so many other advantages that I won't start to list them here. Regards, Sascha
On Fri, Nov 17, 2006 at 08:33:15AM +0800, Sinang, Danny wrote:
Hello,
Is there a Zope product out there that would allow me to check into SVN my Zope objects (i.e. TAL pages, Python scripts, and ZSQLMethods) ?
If not, can anyone here show me some skeleton code to :
1. Enumerate these objects 2. Reference them as files
FSDump will dump stuff from a folder to the filesystem. http://www.zope.org/Members/tseaver/FSDump Then, replace the folder with a FileSystemSite or one of the alternatives. http://wiki.zope.org/zope2/FileSystemSite -- Paul Winkler http://www.slinkp.com
participants (5)
-
Andreas Jung -
Dario Lopez-Kästen -
Paul Winkler -
Sascha Welter -
Sinang, Danny