/[fenfire]/fenfire/org/fenfire/view/buoy/PPLinker.test
ViewVC logotype

Diff of /fenfire/org/fenfire/view/buoy/PPLinker.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mudyc, Tue Mar 25 18:05:43 2003 UTC revision 1.3 by mudyc, Wed Mar 26 14:00:25 2003 UTC
# Line 1  Line 1 
1  #(c): Matti Katila  #(c): Matti Katila
2    
3  from org.fenfire.modules.pp import *  from org.fenfire.modules.pp import *
4    from org.fenfire.vocab import PP
5  import org.fenfire.view.buoy  import org.fenfire.view.buoy
6  from org.fenfire.util import URN5Namespace, Pair  from org.fenfire.util import URN5Namespace, Pair
7  from org.nongnu.libvob.buoy import BuoyViewNodeType,\  from org.nongnu.libvob.buoy import BuoyViewNodeType,\
# Line 11  from org.fenfire.test.gfx import getvs Line 12  from org.fenfire.test.gfx import getvs
12    
13    
14  def setUp():  def setUp():
15      global model, PP      global model
16      model = jena.mem.ModelMem()      model = jena.mem.ModelMem()
     PP = PPVocab()  
17    
18      global uriA, uriB      global uriA, uriB
19      global nodeA, nodeB      global nodeA, nodeB
# Line 24  def setUp(): Line 24  def setUp():
24      nodeB = model.createResource(uriB)      nodeB = model.createResource(uriB)
25    
26      # assoc      # assoc
27      nodeA.addProperty(PP.Association, nodeB)      nodeA.addProperty(PP.association, nodeB)
28    
29      global ppLinker      global ppLinker
30      ppLinker = PPLinker(model, PP)      ppLinker = PPLinker(model)
31    
32  class NodeType(BuoyViewNodeType):  class NodeType(BuoyViewNodeType):
33      def getSizde(self, linkId, anchor, wh):      def getSizde(self, linkId, anchor, wh):

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26