Exemplo n.º 1
0
 def delete_mdt(self, mdt_id):
     log.info('delete_mdt %s' % mdt_id)
     try:
         mdt = MetaDataTemplate.get(docid=mdt_id)
         mdt.delete()
     except Exception, e:
         log.error("%s template with _id: %s" % (e, mdt_id))
         return False
Exemplo n.º 2
0
 def delete_mdt(self, mdt_id):
     log.info('delete_mdt %s' % mdt_id)
     try:
         mdt = MetaDataTemplate.get(docid=mdt_id)
         mdt.delete()
     except Exception, e:
         log.error("%s template with _id: %s" % (e, mdt_id))
         return False