By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,929 Members | 1,284 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,929 IT Pros & Developers. It's quick & easy.

Implement new editing format/through-the-web site management?

P: n/a
Hi,

I'm a Zope newbie but an experienced Python programmer. Could someone
suggest a general approach for the two parts below?

1) I'd like to build a system that stores XML documents in the ZODB
and allows them to be edited through the web in a new text format. The
format is similar to StructuredText and can be translated to XML and
vice versa, using Python methods.

2) The second part of system would be to maintain the site map as an
XML document, also in the ZODB, and allow it to be edited using a
tree-like HTML form or javascript interface, so that the structure of
the entire site could be managed interactively from a single page.
Elements in the site map XML would point to the IDs of XML objects
stored in the ZODB. These pointers could be moved around by editing
the site map. The Zope folder hierarchy would not drive the structure
of the site, the XML document would.

Is it a simple matter to override the editing interface to accomplish
(1)? And does (2) seem unnecessary, given Zope's virtual hierarchy of
objects and folders, which you get automatically? Being able to deal
with the entire site at a glance seemed advantageous to me.

I would prefer to use page templates, not DTML, if possible, and I'd
like to create a self-sufficient Zope product that can be installed
and used "out of the box" by anyone else.

Any tips/comments/flames would be appreciated.

Thanks in advance,

--toby
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
pu*******@yahoo.com wrote:
Hi,

I'm a Zope newbie but an experienced Python programmer. Could someone
suggest a general approach for the two parts below?

1) I'd like to build a system that stores XML documents in the ZODB
and allows them to be edited through the web in a new text format. The
format is similar to StructuredText and can be translated to XML and
vice versa, using Python methods.

2) The second part of system would be to maintain the site map as an
XML document, also in the ZODB, and allow it to be edited using a
tree-like HTML form or javascript interface, so that the structure of
the entire site could be managed interactively from a single page.
Elements in the site map XML would point to the IDs of XML objects
stored in the ZODB. These pointers could be moved around by editing
the site map. The Zope folder hierarchy would not drive the structure
of the site, the XML document would.


afaik zope has a xml-export/import facility that might you help on this. The
zms publishing system abstracts from this and offers a even simpler format.
Thus the objects aren't stored as xml itself, but you can access it that
way in both directions.

Then your second point is more or less zope standard - you can use the zope
management interface to cut and paste objects to rearange them.
--
Regards,

Diez B. Roggisch
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.