[Zope] Re: Command line access to Zope data
Anton Stonor
stonorn at giraffen.dk
Sat Feb 21 08:39:53 EST 2004
John Poltorak wrote:
> I am assumming that all data on a Zope hosted website resides in Data.fs
> even if you are running a Plone site.
>
> If so, how do you update something like Plone news items from the command
> line?
As others have written you can connect to Zope in different ways. Zope
takes care of marshalling and demarshalling the data. So if you get a
news object from Zope by using FTP it will look like a normal HTML file
to your editor, command line tool or other. You can then edit the ASCII
file and save it back and Zope takes care of updating the database
accordingly.
A news item will look like this:
----
<html>
<head>
<title>My news item</title>
<meta name="Subject" content="Cars" />
<meta name="Publisher" content="No publisher" />
<meta name="Description" content="This is a test of ftp to a news item" />
<meta name="Contributors" content="" />
<meta name="Effective_date" content="2004-02-21 14:37:19" />
<meta name="Expiration_date" content="2004-10-14 00:00:00" />
<meta name="Type" content="News Item" />
<meta name="Format" content="text/html" />
<meta name="Language" content="en" />
<meta name="Rights" content="" />
<meta name="SafetyBelt" content="1077369940.66" />
</head>
<body>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Vivamus ligula urna, luctus a, bibendum ut, aliquet id, felis. Donec
fermentum dui at eros. Duis ullamcorper mauris suscipit ipsum.
Suspendisse pretium sagittis arcu. Praesent tincidunt feugiat erat.
Mauris facilisis condimentum lacus. Maecenas accumsan. Nunc bibendum. </p>
</body>
</html>
--
/Anton Stonor
More information about the Zope
mailing list