File: regobjects2.py

package info (click to toggle)
logilab-common 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,200 kB
  • sloc: python: 11,129; makefile: 42
file content (10 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
from logilab.common.registry import RegistrableObject, RegistrableInstance, yes


class MyRegistrableInstance(RegistrableInstance):
    __regid__ = "appobject3"
    __select__ = yes()
    __registry__ = "zereg"


instance = MyRegistrableInstance(__module__=__name__)