fix _instantiate_selector() mini bug (make sure obj is a class before calling issubclass)
class para(AttributeRelationType):
permissions = {
'read': ('managers', 'users', 'guests'),
'add': ('managers', ERQLExpression('X in_state S, S name "todo"')),
'delete': ('managers', ERQLExpression('X in_state S, S name "todo"')),
}
class in_state(RelationDefinition):
subject = 'Note'
object = 'State'
cardinality = '1*'
constraints=[RQLConstraint('S is ET, O state_of ET')]
class wf_info_for(RelationDefinition):
subject = 'TrInfo'
object = 'Note'
cardinality = '1*'