Forums / Setup & design / Restricting ObjectRelation to objects of certain classes

Restricting ObjectRelation to objects of certain classes

Author Message

Ulrich L.

Friday 29 April 2005 6:24:11 am

Hi,
when using the class attribute ObjectrelationList, you have the possibility to restrict the choice of objects to certain classes specified in the class definition.
However, when using the class attribute ObjectRelation for a single relation, I am missing such a restriction. What is the reason? Is there a way to define a single ObjectRelation with such a class restriction? (Since I'm still a newbie I don't want to deal with thirdparty stuff like AdvancedObjectsRelations)

Xavier Dutoit

Sunday 01 May 2005 7:53:12 am

I'd be interested to know why you're afraid of using contribs like AdvancedObjectRelations.

That's not that complicated to install extensions, and I think the doc I wrote on aor isn't that frighting, is it ?

X+

http://www.sydesy.com

Ulrich L.

Monday 02 May 2005 8:00:00 am

Xavier,
sorry for my scepticism... perhaps I really should make a try. First, I have some questions:

1. I have a test installation already running. Can I add (and remove) EnhancedObjectRelations now without affecting the existing data structures (my own classes which use normal object relations included)?

2. Can I use normal ObjectRelation and EnhancedObjectRelations simultaneously in parallel(e.g. for testing)?

3. Does EnhancedObjectRelations provide every feature usually covered by normal ObjectRelation and ObjectRelationList?

4. Do I understand you right that EnhancedObjectRelation provides the feature I'm looking for in this thread (restricting single relations to certain classes)?

5. @ezTeam (somebody of ez reading this thread?): Will the special features of EnhancedObjectRelations be integrated in a forthcoming standard release?

Thanks,
Uli

Xavier Dutoit

Monday 02 May 2005 10:27:37 am

Hi,

I don't want to force you to try eor, just try to understand what stops you from trying.

Yes, you can add (and remove) EnhancedObjectRelations without altering your own classes which use normal object relations included. You have to run a simple sql query on your database, but it doesn't change the behavior of the rest of the ez application.

You can use normal ObjectRelation and EnhancedObjectRelations simultaneously in parallel.

I think EnhancedObjectRelations provides every feature usually covered by normal ObjectRelation and ObjectRelationList. Tell me if it isn't the case.

Enhancedobjectrelation let you define how to select the attachable objects (class or children of a parent node).

X+

P.S. The pubsvn version is more up to date than the tgz file.

http://www.sydesy.com

Ulrich L.

Friday 10 June 2005 3:52:50 am

Xavier,
do you think the new features concerning object relations of 3.6 cover what EOR was originally made for?

Xavier Dutoit

Friday 10 June 2005 6:25:59 am

No,

As far as I know, it resolves the reverse related link and add coherency (if a is related to b and you delete b, it deletes the relation in a).

However, all the improvments on the user interface are not make their way to the 3.6.

On the pro side, one has reported to me that you don't have to modify the database to install eor.

If you give it a try, could you confirm it to me ?

X+

http://www.sydesy.com