Access Plone Content

8 Messages Forum Options Options
Permalink
Tanisjones
Access Plone Content
Reply Threaded More
Print post
Permalink
Hi,

I am a new user in the Plone world and I have a question that I haven' been able to answer by looking at the documentation of Plone/Zope. I want to be able to introduce content to the database (news, ...) from the command line withouth using the web interface. Is there any way to do it?
Thanks in advance!
Tanis
Ricardo Alves-2
Re: Access Plone Content
Reply Threaded More
Print post
Permalink



Tanisjones wrote:
> Hi,
>
> I am a new user in the Plone world and I have a question that I haven' been
> able to answer by looking at the documentation of Plone/Zope. I want to be
> able to introduce content to the database (news, ...) from the command line
> withouth using the web interface. Is there any way to do it?
There isn't a set of commands that you can use to manipulate content in
Plone. But you can create content programmatically, using Python. Check
the following docs:

http://plone.org/documentation/how-to/add-content-programmatically

http://plone.org/documentation/tutorial/manipulating-plone-objects-programmatically/


Ricardo


--
Ricardo Alves <rsa@...>
Eurotux <http://www.eurotux.com>




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Robert Gravina
Re: Access Plone Content
Reply Threaded More
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

On 23/07/2008, at 5:51 AM, Tanisjones wrote:


Hi,

I am a new user in the Plone world and I have a question that I haven' been
able to answer by looking at the documentation of Plone/Zope. I want to be
able to introduce content to the database (news, ...) from the command line
withouth using the web interface. Is there any way to do it?
Thanks in advance!
Tanis

You could do this via Python:
http://plone.org/documentation/how-to/add-content-programmatically

I believe this is still how it is done in Plone 3?

If you wanted to do this from the command line, you could probably create a python script which opened the ZODB and added in this content. I'm not sure how this would be done though, if it can be done while Plone is running etc.

Robert


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Sergey V.
Re: Access Plone Content
Reply Threaded More
Print post
Permalink

Robert Gravina wrote:
If you wanted to do this from the command line, you could probably  
create a python script which opened the ZODB and added in this  
content. I'm not sure how this would be done though, if it can be done  
while Plone is running etc.
Is using ftp still considered "command line"? ftp-ing content would be the easiest option...

Also it would be possible to write an external program which calls various methods of a running Plone instance through-the-web, but that may be tricky except some very simple cases.
Tanisjones
Re: Access Plone Content
Reply Threaded More
Print post
Permalink
Thanks for the information and the links... this is more or less my idea. I used to work with other SQL-based CMS and in those case we simply connect directly to the DB withouth any need to use the CMS interface, so I was looking for a similar way to do it.
Tanis

Robert Gravina wrote:
On 23/07/2008, at 5:51 AM, Tanisjones wrote:

>
> Hi,
>
> I am a new user in the Plone world and I have a question that I  
> haven' been
> able to answer by looking at the documentation of Plone/Zope. I want  
> to be
> able to introduce content to the database (news, ...) from the  
> command line
> withouth using the web interface. Is there any way to do it?
> Thanks in advance!
> Tanis

You could do this via Python:
http://plone.org/documentation/how-to/add-content-programmatically

I believe this is still how it is done in Plone 3?

If you wanted to do this from the command line, you could probably  
create a python script which opened the ZODB and added in this  
content. I'm not sure how this would be done though, if it can be done  
while Plone is running etc.

Robert


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users
Tanisjones
Re: Access Plone Content
Reply Threaded More
Print post
Permalink
Looks an interesting idea... but apart from adding/deleting files, can I modify properties of the objects using FTP or WebDav? Any tutorial on how to connect using these two services?
Thanks!
Tanis

Sergey V. wrote:
Robert Gravina wrote:
If you wanted to do this from the command line, you could probably  
create a python script which opened the ZODB and added in this  
content. I'm not sure how this would be done though, if it can be done  
while Plone is running etc.
Is using ftp still considered "command line"? ftp-ing content would be the easiest option...

Also it would be possible to write an external program which calls various methods of a running Plone instance through-the-web, but that may be tricky except some very simple cases.

Jean Jordaan
Re: Access Plone Content
Reply Threaded More
Print post
Permalink
Hi there

> Looks an interesting idea...

Works great ..

> but apart from adding/deleting files, can I
> modify properties of the objects using FTP or WebDav?

Mostly, no.

> Any tutorial on how to connect using these two services?

1) Check in the zope.conf file whether you have FTP/WebDAV servers running.
2) Connect the same way you would connect to any other FTP/WebDAV
server on the planet.

--
jean                    . .. .... //\\\oo///\\

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
John Habermann
Re: Access Plone Content
Reply Threaded More
Print post
Permalink
I used the cadaver client on linux to import thousands of images and
articles when importing our content from our old CMS into Plone. It
makes it quite easy to add content to your database. We had all the
content from our old CMS in XML format so used the ATXML marshaller to
enable XML support over webdav see
http://plone.org/documentation/tutorial/xml-in-plone-with-marshall
You can then view your existing plone content types in XML format and
using that as the basis I just wrote some python scripts to convert
our content to that format and then it was just a matter of logging in
via cadaver and using "mput *" and waiting for all your content to be
imported into plone. Once it is in plone then you can just refer to
the tutorials pointed out above regarding how to manipulate objects
programatically.
There are a range of different ways you can add content to plone
without using the web interface. Just do some searching on importing
content into plone.

cheers
John

On Thu, Jul 24, 2008 at 12:26 AM, Tanisjones <jordi.duch@...> wrote:

>
> Looks an interesting idea... but apart from adding/deleting files, can I
> modify properties of the objects using FTP or WebDav? Any tutorial on how to
> connect using these two services?
> Thanks!
> Tanis
>
>
> Sergey V. wrote:
>>
>>
>>
>> Robert Gravina wrote:
>>>
>>> If you wanted to do this from the command line, you could probably
>>> create a python script which opened the ZODB and added in this
>>> content. I'm not sure how this would be done though, if it can be done
>>> while Plone is running etc.
>>>
>>
>> Is using ftp still considered "command line"? ftp-ing content would be the
>> easiest option...
>>
>> Also it would be possible to write an external program which calls various
>> methods of a running Plone instance through-the-web, but that may be
>> tricky except some very simple cases.
>>
>>
>
>
>
> --
> View this message in context: http://n2.nabble.com/Access-Plone-Content-tp577200p578519.html
> Sent from the General Questions mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Plone-Users mailing list
> Plone-Users@...
> https://lists.sourceforge.net/lists/listinfo/plone-users
>



--
John Habermann
Internet Programmer, System Administrator
The Wilderness Society Inc
http://www.wilderness.org.au

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users