Editing Catalog index content and meta data content

11 Messages Forum Options Options
Embed this topic
Permalink
Rizwan
Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink
Hi,


Is there any method that edit this content from catalog to new object?

like any way to explicit set creator in catalog like obj.setCreator(creator)?

R
Andreas Jung-5
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink


--On 28. August 2008 04:37:08 -0700 Rizwan <rijvan@...> wrote:

>
> Hi,
>
>
> Is there any method that edit this content from catalog to new object?
>
> like any way to explicit set creator in catalog like
> obj.setCreator(creator)?

What is your problem with the official way

obj.indexObject()
obj.reindexObject()

?

-aj

-------------------------------------------------------------------------
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

attachment0 (201 bytes) Download Attachment
Rizwan
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink
I am creating new version of object and when this newly created object publish i will delete old object . In this process there is nothing happening with catalog so what i am fetching transaction history for last modified user and like to set this last modified author to creator of newly created object.

so i would like to do something like obj.setCreator(last_modified_author) in my code. Is there any other way to do? as this seem to be not working..



Andreas Jung-5 wrote:

--On 28. August 2008 04:37:08 -0700 Rizwan <rijvan@gmail.com> wrote:

>
> Hi,
>
>
> Is there any method that edit this content from catalog to new object?
>
> like any way to explicit set creator in catalog like
> obj.setCreator(creator)?

What is your problem with the official way

obj.indexObject()
obj.reindexObject()

?

-aj
 
-------------------------------------------------------------------------
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
Andreas Jung-5
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink


--On 28. August 2008 04:46:18 -0700 Rizwan <rijvan@...> wrote:

>
>
> I am creating new version of object and when this newly created object
> publish i will delete old object

What is a "new version of object". A new instance? A new object in the
context of the Plone versioning system? A copy of an object?

>. In this process there is nothing
> happening with catalog so what i would like to from transaction history i
> am fetching last modified user and like to set creator of newly created
> object.
>
> so i would like to do something like obj.setCreator(last_modified_author)
> in my code is any other way to do? as this seem to be not working..:-/
>

No idea what this has to do with the catalog. You access the creator of the
old object through the accessor method of the old object and assign it to
the new object using setCreator(). What's wrong with this approach?

-aj



-------------------------------------------------------------------------
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

attachment0 (201 bytes) Download Attachment
Rizwan
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink
I am using staging product called PVS. which is creating copy of object for editing purpose and after publishing that object we have custom script which delete old object.

so its copy of object so when i create new version is like old_object_id~v~(number_of_version)..and when it got publish old object get deleted and this newly created object change its id to original id..

R
Andreas Jung-5 wrote:

--On 28. August 2008 04:46:18 -0700 Rizwan <rijvan@gmail.com> wrote:

>
>
> I am creating new version of object and when this newly created object
> publish i will delete old object

What is a "new version of object". A new instance? A new object in the
context of the Plone versioning system? A copy of an object?

>. In this process there is nothing
> happening with catalog so what i would like to from transaction history i
> am fetching last modified user and like to set creator of newly created
> object.
>
> so i would like to do something like obj.setCreator(last_modified_author)
> in my code is any other way to do? as this seem to be not working..:-/
>

No idea what this has to do with the catalog. You access the creator of the
old object through the accessor method of the old object and assign it to
the new object using setCreator(). What's wrong with this approach?

-aj


 
-------------------------------------------------------------------------
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
Andreas Jung-5
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink


--On 28. August 2008 06:06:24 -0700 Rizwan <rijvan@...> wrote:

>
> I am using staging product called PVS. which is creating copy of object
> for editing purpose and after publishing that object we have custom
> script which delete old object.
>
> so its copy of object so when i create new version is like
> old_object_id~v~(number_of_version)..and when it got publish old object
> get deleted and this newly created object change its id to original id..
>

So what is the problem? Your original problem was something about
catalog...then something with setCreator()...now versioning...please
come to the point.

-aj

-------------------------------------------------------------------------
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

attachment0 (201 bytes) Download Attachment
Rizwan
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink
I would like to take last modified user from old object and set to creator of newly created object.


R

Andreas Jung-5 wrote:

--On 28. August 2008 06:06:24 -0700 Rizwan <rijvan@gmail.com> wrote:

>
> I am using staging product called PVS. which is creating copy of object
> for editing purpose and after publishing that object we have custom
> script which delete old object.
>
> so its copy of object so when i create new version is like
> old_object_id~v~(number_of_version)..and when it got publish old object
> get deleted and this newly created object change its id to original id..
>

So what is the problem? Your original problem was something about
catalog...then something with setCreator()...now versioning...please
come to the point.

-aj
 
-------------------------------------------------------------------------
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
Andreas Jung-5
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink


--On 28. August 2008 06:12:36 -0700 Rizwan <rijvan@...> wrote:

>
> I would like to take last modified user from old object and set to
> creator of newly created object.

Read my mail from 13:54h.

-aj

-------------------------------------------------------------------------
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

attachment0 (201 bytes) Download Attachment
Rizwan
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink
It's saying  AttributeErrror  setCreator.

Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.PVSForPlone2.PVSTool, line 209, in createVersion
AttributeError: setCreator



Andreas Jung-5 wrote:

--On 28. August 2008 06:12:36 -0700 Rizwan <rijvan@gmail.com> wrote:

>
> I would like to take last modified user from old object and set to
> creator of newly created object.

Read my mail from 13:54h.

-aj
 
-------------------------------------------------------------------------
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
Andreas Jung-5
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink


--On 28. August 2008 06:26:41 -0700 Rizwan <rijvan@...> wrote:

>
> It's saying  AttributeErrror  setCreator.
>
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 115, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 41, in call_object
>   Module Products.PVSForPlone2.PVSTool, line 209, in createVersion
> AttributeError: setCreator
>
>
The method is called setCreators() (as you could have check easily checked
yourself).

-aj

-------------------------------------------------------------------------
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

attachment0 (201 bytes) Download Attachment
Rizwan
Re: Editing Catalog index content and meta data content
Reply Threaded MoreMore options
Print post
Permalink
:( sorry to give you hard time..but really appreciates your time.

Thanks very much its works !!!!!!!!


Andreas Jung-5 wrote:

--On 28. August 2008 06:26:41 -0700 Rizwan <rijvan@gmail.com> wrote:

>
> It's saying  AttributeErrror  setCreator.
>
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 115, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 41, in call_object
>   Module Products.PVSForPlone2.PVSTool, line 209, in createVersion
> AttributeError: setCreator
>
>

The method is called setCreators() (as you could have check easily checked
yourself).

-aj
 
-------------------------------------------------------------------------
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