TopicMaps

Florian Konnertz <[email protected]> Sun, 7 Dec 2003 22:41:10 +0000 (UTC)
Newsgroups gmane.comp.web.zope.plone.collective.ticle
Message-ID <[email protected]>
Hi all

I made little progress (with Simons help) on the design of a TM class. 
But i still need further help. It would be great if someone could add 
more docs to the wiki and write an example.
I also like to help to write a ZopeWrapper for ticle, just need a little 
more info how this done. (Maybe you have some general resources or can 
point me to a module to look at as an example.) Basically i dont know if 
it has to be a very lightweight module, just to access the ticle methods 
via python script or if it is a more complicated thing.

But now to my current TM approach:
I have a
class TopicMapManager(TicleCore)
and
class TopicMapObject(SimpleItem, Triple)

Is this basically correct?
Would you recommend to make a PloneTool, should the TopicMapManager 
class be the tool class?
Please gimme some feedback, i'm really hungry on it.


And here's a concrete prob:
I access the getRelationType method in Triple class via PT
here.getRelationType()
and get the error:
   Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
    - __traceback_info__: here.getRelationType()
   Module Python expression "here.getRelationType()", line 1, in 
<expression>
   Module ticle.coreobjects, line 98, in getRelationType
   Module ticle.coreobjects, line 68, in _callable
TypeError: type() takes 1 or 3 arguments

Why is it confusing the _type attribute with the builtin type() method ? 
How can i avoid that?




Best,
Florian





-- 
Florian Konnertz   ---   http://florian-konnertz.de	
http://openspirit.de/noowiki/FrontPage
Portal and wiki about all topics, especially consciousness
research and wisdom traditions







-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click