Re: [Zope] Meta Type change

2005-04-19 Thread Chris Withers
David wrote:
I was wondering if I could just alter the meta_type for the object from 
within Zope, maybe through a python script and see if that makes the 
object accessible again. I can't find anything on how to change the 
meta_type for an existing object though.
This is likely ot be the wrong way to go about it.
You need to put the code for the class of object with the problems back 
in a state it was when things were last working.

Changing meta_type, or worse still, trying to change the class of a 
persistent object will lead to much pain and suffering...

Chris
--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Meta Type change

2005-04-16 Thread David
Hi
How do I change the meta_type for an object in the ZMI from within Zope?
An instance of a product I have built (inheriting from the the Folder 
Product) has become inaccessible after adding a lot of data. 
Essentially this is a product to archive text strings in a specific 
format and has worked fine for months. The problem has lead to 
corruption of the Data.fs file (and fsrecovery.py did not find anything 
to recover). I had a few backups from which I was able to recover the 
rest of the site and of the archive in a previous state, but had to go 
back 3 days.

The backup from the day before the corruption does have the object in 
the ZMI tree, but now Zope thinks this is a normal Folder and when I 
try to access it, gives me attribute errors.  When I attempt an XML 
download, although there are errors, I can see all the archived texts 
in the text that is appearing in my browser, however they are embedded 
in chaotic-looking text garbage, so I can't find a way to extract them 
by script. (And there are about 5000 missing texts, so copy and paste 
would take days!)

I was wondering if I could just alter the meta_type for the object from 
within Zope, maybe through a python script and see if that makes the 
object accessible again. I can't find anything on how to change the 
meta_type for an existing object though.

Any help very appreciated.
Cheers
David
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] meta type?

2000-10-31 Thread hohage

Hallo Jason,
you are on the right way.
Try this in a folder:
-



-
You'll get the names of all the metatypes in the current folder.
 Bye
   Sven
P.S.:the "available objects" button shows all available metatypes in your 
installation(you can add more by installing products or creating them on your 
own).


>= Original Message From "Jason C. Leach" <[EMAIL PROTECTED]> =
>hi,
>
>What is ment by a meta type?
>
>Is that like 'Image' in the case of images, and Folder in the case of
>folders?
>
>j.
>
>..
>. Jason C. Leach
>... University College of the Cariboo.
>..
>
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] meta type?

2000-10-30 Thread Erik Enge

On Mon, 30 Oct 2000, Jason C. Leach wrote:

> Is that like 'Image' in the case of images, and Folder in the case of
> folders?

Yupp.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] meta type?

2000-10-30 Thread Jason C. Leach

hi,

What is ment by a meta type?

Is that like 'Image' in the case of images, and Folder in the case of
folders?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Meta Type Registry

2000-07-25 Thread Toby Dickenson

On Sat, 22 Jul 2000 13:20:59 -0600, Bill Anderson <[EMAIL PROTECTED]>
wrote:

>Andrew Kenneth Milton wrote:
>> 
>> Is there a Product Builders meta-type registry somewhere?
>> 
>> I can see things getting messed up in the near future as the number of
>> products proliferates and meta-types start to clash.
>> 
>> I've already seen weird interactions with products
>> PSQL Input Wizard and ZNolk when both are installed I only got
>> PSQL Input Wizard despite picking ZNolk from the drop down...
>> 
>> At least if developers can register their meta-types then common
>> meta-types won't clash for different products (I can see stuff like
>> 'news item' and 'link' clashing all the time).
>> 
>> Perhaps limit registration to developers who have published their product,
>> I know this probably places an additional burden on the already heavily
>> under seige developers, but I think some controls are going to be needed.
>
>
>IMO, this should be done in each individual Zope server. IE, Zope
>shouldn't let you have two meta_types called 'News Item'. In combination
>with this, Products should list their meta types.

There is a list of product names on http://www.zope.org/Products. If
meta-types were to include the product name


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Meta Type Registry

2000-07-22 Thread Bill Anderson

Andrew Kenneth Milton wrote:
> 
> Is there a Product Builders meta-type registry somewhere?
> 
> I can see things getting messed up in the near future as the number of
> products proliferates and meta-types start to clash.
> 
> I've already seen weird interactions with products
> PSQL Input Wizard and ZNolk when both are installed I only got
> PSQL Input Wizard despite picking ZNolk from the drop down...
> 
> At least if developers can register their meta-types then common
> meta-types won't clash for different products (I can see stuff like
> 'news item' and 'link' clashing all the time).
> 
> Perhaps limit registration to developers who have published their product,
> I know this probably places an additional burden on the already heavily
> under seige developers, but I think some controls are going to be needed.


IMO, this should be done in each individual Zope server. IE, Zope
shouldn't let you have two meta_types called 'News Item'. In combination
with this, Products should list their meta types.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Meta Type Registry

2000-07-22 Thread Andrew Kenneth Milton

Is there a Product Builders meta-type registry somewhere?

I can see things getting messed up in the near future as the number of
products proliferates and meta-types start to clash.

I've already seen weird interactions with products
PSQL Input Wizard and ZNolk when both are installed I only got
PSQL Input Wizard despite picking ZNolk from the drop down... 

At least if developers can register their meta-types then common
meta-types won't clash for different products (I can see stuff like
'news item' and 'link' clashing all the time).

Perhaps limit registration to developers who have published their product,
I know this probably places an additional burden on the already heavily
under seige developers, but I think some controls are going to be needed.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )