bulk rename

This commit is contained in:
Ravi Dey
2011-07-07 18:51:57 +05:30
3 changed files with 8 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
# REMEMBER to update this # REMEMBER to update this
# ======================== # ========================
last_patch = 318 last_patch = 319
#------------------------------------------- #-------------------------------------------
@@ -1277,3 +1277,6 @@ def execute(patch_no):
sql("update `tabPage` set name = 'profile-settings' where page_name = 'Profile Settings'") sql("update `tabPage` set name = 'profile-settings' where page_name = 'Profile Settings'")
elif patch_no == 318: elif patch_no == 318:
reload_doc('utilities', 'doctype', 'bulk_rename_tool') reload_doc('utilities', 'doctype', 'bulk_rename_tool')
elif patch_no == 319:
sql("delete from tabFeed where doc_name like 'New %'")

View File

@@ -63,7 +63,7 @@ class DocType:
msgprint("[Ignored] Incorrect format: %s" % str(line)) msgprint("[Ignored] Incorrect format: %s" % str(line))
msgprint("<b>%s</b> items updated" % updated) msgprint("<b>%s</b> items updated" % updated)
# Update CSV data # Update CSV data
def get_csv_data(self): def get_csv_data(self):

View File

@@ -5,8 +5,8 @@
{ {
'creation': '2011-07-07 18:05:53', 'creation': '2011-07-07 18:05:53',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-07-07 18:05:53', 'modified': '2011-07-07 18:51:19',
'modified_by': 'Guest', 'modified_by': 'Administrator',
'owner': 'Guest' 'owner': 'Guest'
}, },
@@ -21,7 +21,7 @@
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': 'Simple',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 4 'version': 6
}, },
# These values are common for all DocField # These values are common for all DocField