Re: [Zope] ZClass acting up?

2000-05-23 Thread Tres Seaver

Erik Enge wrote:
> 
> Tres Seaver <[EMAIL PROTECTED]> writes:
> 
> > If you fill out the ID and press 'Add', le voilà!
> 
> Yeah, your right! But that still means I need to do
> some hacking about, and me and my semantics does not
> like that ;-)
> 
> > (Actually it looks like a duplicate of #811).
> 
> How can I see number 811, it just shows up to 600 and something?

  http://classic.zope.org:8080/Collector/811/view

The "sequence numbers" shown on the query results page are bogus -- they
are actually the number of the item within the current result set, which
is an almost completely useless piece of information.

With regard to your original problem:  I would add a DTMLMethod to
the "project" class which creates a named sub-object.  Make it one
of the views of the class so that you can get to it through the
management interface, and you are set (the "Contents" view is kind
of a catch-all, anyway).

Best,

Tres.
-- 
=
Tres Seaver  [EMAIL PROTECTED]
Digital Creations   "Zope Dealers"   http://www.zope.org

___
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] ZClass acting up?

2000-05-23 Thread Erik Enge

Tres Seaver <[EMAIL PROTECTED]> writes:

> If you fill out the ID and press 'Add', le voilà!

Yeah, your right! But that still means I need to do
some hacking about, and me and my semantics does not 
like that ;-)

> (Actually it looks like a duplicate of #811).

How can I see number 811, it just shows up to 600 and something?

___
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] ZClass acting up?

2000-05-22 Thread Tres Seaver

Erik Enge <[EMAIL PROTECTED]> asked:
> 
> I have discovered this extremely irritating "feature" with ZClasses.
> 
> Sorry for this long and rather ugly explanation, but I don't know
> what the problem is, so it has to be like this:
> 
> Add test_product product in Control Panel - Product Management
> In test_product:
> Add a test_folder zclass with object manager as its base
>  class
> In test_folder:
> Add test_project zclass with test_folder as its base
> class
> 
> (be sure to enter all factories and press "change")
> 
> Now, enter your Zope tree (http://localhost/, for example) and do:
> 
> Add a test_folder
> In test_folder:
> Add a test_project
> In test_project:
> Add a test_project
> 
> The point here being to demonstrate that you can add
> recursively test_projects. Which is nice, I love it..
> semantics looking nice and all :-).
> 
> Then, go back to the test_product, and in test_project add a Z Class
> thats called test_projectteam, make object manager the base class.
> 
> And finally, enter the test_folder you created earlier and add a
> test_project. Enter this project... now what do you see? Thats right,
> your not able to add test_projects recursively any longer, but you
> can add project_teams (which doesn't really make me all that happy).
> 
> Why is this? I want to be able to structure projects into sub
> projects and be able to divide the project teams working on the
> different projects. Does anyone know why this happens? And possibly
> how I can achieve what I want?


"Kevin Dangoor" <[EMAIL PROTECTED]> replied:
> 
> - Original Message -
> From: "Erik Enge" <[EMAIL PROTECTED]>
> 
> > "Kevin Dangoor" <[EMAIL PROTECTED]> writes:
> >
> > > This seems like odd behavior to me. Did you check your Subobjects
> > > tab to make sure that the appropriate subobjects are still
> > > selected?
> >
> > There is no way to select a Z Class that is a child of another Z
> > Class in the subobject list.  Should I be able to do that? Seems to
> > that this was never possible.  All I can select is test_product, but
> > that isn't what I want.  Got a clue?  Is it a bug or functionality
> > that just isn't supposed to be there?
> 
> You're correct, there is no way to select a ZClass that is the child
> of another in the subobject list. (It is assumed to be available).
> 
> I misread your original note. I didn't realize that test_project not
> only had test_folder as a base class, but is a class created
> underneath test_folder. I've never tried to do that, and it may not
> be a case that was considered when they built ZClasses...

Actually, it *is* possible still to add the test_project objects;
the problem is that the management interface is confused about the
list of possible options.  To prove this to yourself, follow Eric's
recipe above, and then invoke the add form directly through the URL,
e.g.:

  http://my.site/a_test_folder/a_test_project/manage_addProduct/test_product/test_folder/test_project_addForm>

If you fill out the ID and press 'Add', le voilà!

The management interface is using some unhappy heuristics in its
attempt to determine the legal set of addable classes:

 * In the initial case, the only possible item is test_project, so
   it hard-wires the "Add" button to it (and doesn't show a list!)

 * In the second case, the "nested class rule" kicks in before the
   MI gets up to the top of the product, and so the nested "project
   team" class is the only one found;  again, the MI wires up the
   "Add" button directly, with no list.

 * If you had more nested classes, you would see a list of them
   (but still not the project class itself).  Likewise, if you add
   other meta-types to the "Subobject" tab of the class, they will
   appear in the list as well.

This problem is a ZClass bug and should be reported to the Collector:

  http://classic.zope.org:8080/Collector

(Actually it looks like a duplicate of #811).

Tres.
-- 
===
Tres Seaver   Digital Creations[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] ZClass acting up?

2000-05-22 Thread Erik Enge

"Kevin Dangoor" <[EMAIL PROTECTED]> writes:

> You're correct, there is no way to select a ZClass that is the child of
> another in the subobject list. (It is assumed to be available).

Yeah, but what you should probably do is to make the top ZClass one of
the base classes (but do not add it along with the Object Manager -
then you loose the recursiveness as well... don't know why) of the
ZClass you want to be recursive; as I did.

> I misread your original note. I didn't realize that test_project not only
> had test_folder as a base class, but is a class created underneath
> test_folder. I've never tried to do that, and it may not be a case that was
> considered when they built ZClasses...

I think it should be the natural case of the DOM? Could anyone clarify
this, please?

-- 
 Erik Enge

___
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] ZClass acting up?

2000-05-22 Thread Erik Enge

"Morten W. Petersen" <[EMAIL PROTECTED]> writes:

> My apologies, seems I forgot to speak in english:

So did I.. *smuck!*

> Tried it, and it worked. Looks like a Debian specific problem again,
> *cough,cough* ;).

Yeah, you think? I use Red Hat at the moment.

> Seriously, worked fine here.

And you followed the procedure as I said? Sure?

-- 
 Erik Enge

___
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] ZClass acting up?

2000-05-22 Thread Erik Enge

"Morten W. Petersen" <[EMAIL PROTECTED]> writes:


> Prøvde det, og det funka. Ser ut til at det er problemer med Debian igjen,
> *host,host* ;).
> 
Jeg bruker Red Hat 6.2 akkurat nå.

> Seriøst, funker helt fint her.

Hm. Og du fulgte samme prosedyre? Da må jeg nok ringe deg :)

-- 
 Erik Enge

___
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] ZClass acting up?

2000-05-22 Thread Morten W. Petersen

> Prøvde det, og det funka. Ser ut til at det er problemer med Debian igjen,
> *host,host* ;).
> 
> Seriøst, funker helt fint her.
> 
> -Morten (=)
> 

My apologies, seems I forgot to speak in english:

Tried it, and it worked. Looks like a Debian specific problem again,
*cough,cough* ;).

Seriously, worked fine here.

-Morten (=)


___
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] ZClass acting up?

2000-05-22 Thread Kevin Dangoor

- Original Message -
From: "Erik Enge" <[EMAIL PROTECTED]>
To: "Kevin Dangoor" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 12:08 PM
Subject: Re: [Zope] ZClass acting up?


> "Kevin Dangoor" <[EMAIL PROTECTED]> writes:
>
> > This seems like odd behavior to me. Did you check your Subobjects tab to
> > make sure that the appropriate subobjects are still selected?
>
> There is no way to select a Z Class that is a child of another Z
> Class in the subobject list.  Should I be able to do that? Seems to
> that this was never possible.  All I can select is test_product, but
> that isn't what I want.  Got a clue?  Is it a bug or functionality
> that just isn't supposed to be there?

You're correct, there is no way to select a ZClass that is the child of
another in the subobject list. (It is assumed to be available).

I misread your original note. I didn't realize that test_project not only
had test_folder as a base class, but is a class created underneath
test_folder. I've never tried to do that, and it may not be a case that was
considered when they built ZClasses...

Kevin


___
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] ZClass acting up?

2000-05-22 Thread Morten W. Petersen

> Did you try it at your installation? With the same result? 
> 

Prøvde det, og det funka. Ser ut til at det er problemer med Debian igjen,
*host,host* ;).

Seriøst, funker helt fint her.

-Morten (=)


___
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] ZClass acting up?

2000-05-22 Thread Erik Enge

"Kevin Dangoor" <[EMAIL PROTECTED]> writes:

> This seems like odd behavior to me. Did you check your Subobjects tab to
> make sure that the appropriate subobjects are still selected?

There is no way to select a Z Class that is a child of another Z
Class in the subobject list.  Should I be able to do that? Seems to
that this was never possible.  All I can select is test_product, but
that isn't what I want.  Got a clue?  Is it a bug or functionality
that just isn't supposed to be there?

Did you try it at your installation? With the same result? 

(I run Zope 2.1.6 on Linux if anyone wondered :-)

-- 
 Erik Enge


___
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] ZClass acting up?

2000-05-22 Thread Kevin Dangoor

- Original Message -
From: "Erik Enge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 7:36 AM
Subject: [Zope] ZClass acting up?


> Hi,
>
> I have discovered this extremely irritating "feature" with ZClasses.
>
> Sorry for this long and rather ugly explanation, but I don't know what
> the problem is, so it has to be like this:
>
> Add test_product product in Control Panel - Product Management
> In test_product:
> Add a test_folder zclass with object manager as its base class
> In test_folder:
> Add test_project zclass with test_folder as its base class
>
> (be sure to enter all factories and press "change")
>
> Now, enter your Zope tree (http://localhost/, for example) and do:
>
> Add a test_folder
> In test_folder:
> Add a test_project
> In test_project:
> Add a test_project
>
> The point here being to demonstrate that you can add
> recursively test_projects. Which is nice, I love it.. semantics
> looking nice and all :-).
>
> Then, go back to the test_product, and in test_project add a Z Class
> thats called test_projectteam, make object manager the base class.
>
> And finally, enter the test_folder you created earlier and add a
> test_project. Enter this project... now what do you see? Thats right,
> your not able to add test_projects recursively any longer, but you can add
> project_teams (which doesn't really make me all that happy).

This seems like odd behavior to me. Did you check your Subobjects tab to
make sure that the appropriate subobjects are still selected?

(Even so, it doesn't seem like adding a ZClass should change what you can
add there..)

Kevin


___
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] ZClass acting up?

2000-05-22 Thread Erik Enge

Hi,

I have discovered this extremely irritating "feature" with ZClasses.

Sorry for this long and rather ugly explanation, but I don't know what
the problem is, so it has to be like this:

Add test_product product in Control Panel - Product Management
In test_product:
Add a test_folder zclass with object manager as its base class
In test_folder:
Add test_project zclass with test_folder as its base class

(be sure to enter all factories and press "change")

Now, enter your Zope tree (http://localhost/, for example) and do:

Add a test_folder
In test_folder:
Add a test_project
In test_project:
Add a test_project

The point here being to demonstrate that you can add
recursively test_projects. Which is nice, I love it.. semantics
looking nice and all :-).

Then, go back to the test_product, and in test_project add a Z Class
thats called test_projectteam, make object manager the base class.

And finally, enter the test_folder you created earlier and add a
test_project. Enter this project... now what do you see? Thats right,
your not able to add test_projects recursively any longer, but you can add
project_teams (which doesn't really make me all that happy).

Why is this? I want to be able to structure projects into sub projects
and be able to divide the project teams working on the different
projects. Does anyone know why this happens? And possibly how I can
achieve what I want?

-- 
 Erik Enge

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