diff --git a/VERSION b/VERSION index ee2c404b..bdb1dda9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.06.30.10.46.28 +Version 2.6.0-development+timestamp.2013.07.02.08.33.02 diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 5e0e3ce5..a23ea5c2 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -458,32 +458,6 @@ def remove_compiled_app(): redirect(URL('site')) -def delete(): - """ Object delete handler """ - app = get_app() - filename = '/'.join(request.args) - sender = request.vars.sender - - if isinstance(sender, list): # ## fix a problem with Vista - sender = sender[0] - - if 'nodelete' in request.vars: - redirect(URL(sender, anchor=request.vars.id)) - elif 'delete' in request.vars: - try: - full_path = apath(filename, r=request) - lineno = count_lines(open(full_path, 'r').read()) - os.unlink(full_path) - log_progress(app, 'DELETE', filename, progress=-lineno) - session.flash = T('file "%(filename)s" deleted', - dict(filename=filename)) - except Exception: - session.flash = T('unable to delete file "%(filename)s"', - dict(filename=filename)) - redirect(URL(sender, anchor=request.vars.id2)) - return dict(filename=filename, sender=sender) - - def delete(): """ Object delete handler """ app = get_app() diff --git a/applications/admin/static/js/ajax_editor.js b/applications/admin/static/js/ajax_editor.js index 4a0560c4..9f3fca87 100644 --- a/applications/admin/static/js/ajax_editor.js +++ b/applications/admin/static/js/ajax_editor.js @@ -232,8 +232,8 @@ function load_file (url) { if (typeof(json['plain_html']) !== undefined) { if (jQuery('#' + json['id']).length === 0 || json['force'] === true) { // Create a tab and put the code in it - var tab_header = '
  • filenameDefault
  • '.replace(/idDefault/, json['id']).replace(/filenameDefault/, json['filename'] ); - var tab_body = '
    htmlDefault
    '.replace(/htmlDefault/, json['plain_html']).replace(/idDefault/, json['id']); + var tab_header = '
  • '+json['filename']+'
  • '; + var tab_body = '
    ' + json['plain_html'] + '
    '; if (json['force'] === false) { jQuery('#filesTab').append(jQuery(tab_header)); jQuery('#myTabContent').append(jQuery(tab_body)); diff --git a/applications/welcome/views/layout.html b/applications/welcome/views/layout.html index 3a99857b..edf4e11e 100644 --- a/applications/welcome/views/layout.html +++ b/applications/welcome/views/layout.html @@ -71,16 +71,16 @@
    {{=response.flash or ''}}