예제 #1
0
파일: graph.py 프로젝트: xiaochang91/tapyr
            )
    if iht_p :
        result ["MOM.Id_Entity"]._add \
            ( ET.MOM.Id_Entity_has_Tag
                ( IS_A.MOM.Link2
                , Role.left  ()
                , Role.right
                    ( IS_A.MOM.Object
                    , offset     = CD.N
                    )
                , offset     = CD.E
                )
            )
    return result
# end def graph

class Command (MOM.Graph.Command) :

    @TFL.Meta.Class_and_Instance_Once_Property
    def PNS (self) :
        return MOM
    # end def PNS

# end class Command

if __name__ != "__main__" :
    MOM._Export_Module ()
else :
    Command () ()
### __END__ MOM.graph
예제 #2
0
        ( name            = "nodedb"
        )

    def import_all(self):
        import _GTW._OMP._PAP.import_PAP
        import _GTW._OMP._Auth.import_Auth
        self.import_default()

    # end def import_all

    def import_default(self):
        import _CNDB._OMP.import_CNDB

    # end def import_default

    def _app_dir_default(self):
        return sos.path.normpath(sos.path.join(self.app_dir, "../..", "doc"))

    # end def _app_dir_default


# end class Command

command = Command()

if __name__ != "__main__":
    CNDB.OMP._Export_Module()
else:
    command()
### __END__ CNDB.OMP.graph