equal
deleted
inserted
replaced
1073 self.rqlexec('DELETE CWRType X WHERE X name %r' % rtype, |
1073 self.rqlexec('DELETE CWRType X WHERE X name %r' % rtype, |
1074 ask_confirm=self.verbosity>=2) |
1074 ask_confirm=self.verbosity>=2) |
1075 if commit: |
1075 if commit: |
1076 self.commit() |
1076 self.commit() |
1077 |
1077 |
1078 def cmd_rename_relation(self, oldname, newname, commit=True): |
1078 def cmd_rename_relation_type(self, oldname, newname, commit=True): |
1079 """rename an existing relation |
1079 """rename an existing relation |
1080 |
1080 |
1081 `oldname` is a string giving the name of the existing relation |
1081 `oldname` is a string giving the name of the existing relation |
1082 `newname` is a string giving the name of the renamed relation |
1082 `newname` is a string giving the name of the renamed relation |
1083 """ |
1083 """ |
1524 |
1524 |
1525 @deprecated("[3.7] use session.enable_hook_categories('integrity')") |
1525 @deprecated("[3.7] use session.enable_hook_categories('integrity')") |
1526 def cmd_reactivate_verification_hooks(self): |
1526 def cmd_reactivate_verification_hooks(self): |
1527 self.session.enable_hook_categories('integrity') |
1527 self.session.enable_hook_categories('integrity') |
1528 |
1528 |
|
1529 @deprecated("[3.15] use session.rename_relation_type(oldname, newname)") |
|
1530 def cmd_rename_relation(self, oldname, newname, commit=True): |
|
1531 self.session.rename_relation_type(oldname, newname, commit) |
|
1532 |
1529 |
1533 |
1530 class ForRqlIterator: |
1534 class ForRqlIterator: |
1531 """specific rql iterator to make the loop skipable""" |
1535 """specific rql iterator to make the loop skipable""" |
1532 def __init__(self, helper, rql, kwargs, ask_confirm): |
1536 def __init__(self, helper, rql, kwargs, ask_confirm): |
1533 self._h = helper |
1537 self._h = helper |