# HG changeset patch # User Sylvain Thénault # Date 1255966533 -7200 # Node ID 986839199f232d9fe08d2515e23d81d916917291 # Parent 55e57070a969bc79481c72e944ef778bfcbeedc8 forgotten some part of a merge diff -r 55e57070a969 -r 986839199f23 hooks/syncschema.py --- a/hooks/syncschema.py Mon Oct 19 17:03:31 2009 +0200 +++ b/hooks/syncschema.py Mon Oct 19 17:35:33 2009 +0200 @@ -816,25 +816,7 @@ self._cw.execute('DELETE Workflow X WHERE NOT X workflow_of Y') -<<<<<<< /home/syt/src/fcubicweb/cubicweb/hooks/syncschema.py class AfterAddCWETypeHook(DelCWETypeHook): -======= -def after_del_relation_type(session, rdefeid, rtype, rteid): - - -# addition hooks ############################################################### - -def before_add_eetype(session, entity): - """before adding a CWEType entity: - * check that we are not using an existing entity type, - """ - name = entity['name'] - schema = session.schema - if name in schema and schema[name].eid is not None: - raise RepositoryError('an entity type %s already exists' % name) - -def after_add_eetype(session, entity): ->>>>>>> /tmp/schemahooks.py~other.2drHhu """after adding a CWEType entity: * create the necessary table * set creation_date and modification_date by creating the necessary