From 62e2d4995329f48cd3a133a660a71e98580a328c Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Wed, 5 Mar 2014 22:01:51 +0100 Subject: [PATCH] [gen] Added a transparent clickable logo at the top left (or right if rtl) of the page. --- fields/file.py | 2 +- gen/mixins/ToolMixin.py | 5 ++--- gen/ui/home.gif | Bin 569 -> 0 bytes gen/wrappers/__init__.py | 13 ++++++------- 4 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 gen/ui/home.gif diff --git a/fields/file.py b/fields/file.py index 95356ea..e61dc0f 100644 --- a/fields/file.py +++ b/fields/file.py @@ -400,7 +400,7 @@ class File(Field): if rq: action = rq.get('%s_delete' % self.name, None) if action != 'nochange': # Delete the file on disk - info = getattr(zobj.aq_base, self.name) + info = getattr(zobj.aq_base, self.name, None) if info: info.removeFile(zobj.getDbFolder(), removeEmptyFolders=True) # Delete the FileInfo in the DB diff --git a/gen/mixins/ToolMixin.py b/gen/mixins/ToolMixin.py index 57b92c6..df53255 100644 --- a/gen/mixins/ToolMixin.py +++ b/gen/mixins/ToolMixin.py @@ -1243,9 +1243,8 @@ class ToolMixin(BaseMixin): tb = sys.exc_info() if error.type.__name__ == 'Unauthorized': siteUrl = self.getSiteUrl() - htmlMessage = '' \ - 'You are not allowed to access this page.' % \ - (siteUrl, siteUrl) + htmlMessage = 'Back You are not allowed to ' \ + 'access this page.' userId = self.appy().user.login textMessage = 'Unauthorized for %s @%s.' % \ (userId, self.REQUEST.get('PATH_INFO')) diff --git a/gen/ui/home.gif b/gen/ui/home.gif deleted file mode 100644 index c203753bd45d91db9b616c4f0898b46117eee837..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 569 zcmZ?wbhEHb6krfwIF`lG9-!G4B-s_D+!mtT6{_4Bra37}y*EKKC4EwQ*7Wq8X_+}w zQ}X9#7EVhqT$EF^q@r?aUe&7HhJ_XNn+rR()J@sjGU;&L%pcxjQsjfD!2 zmaE@hrG9I*+PyWZ_t$CP+@$_wlh)(S+RwI{Jl|pVVyD^jT~5z;IX~Is^&Fu|pHA4lJ8k~_<#S)_q$(zKK%0I(Usv*RPL1{=ND0=kZB05l?QOcYHoD!-nsyHMcA68lt*!L*tgN-$)h$g_ zJUmoPEj3!z%#4*?Gc#S4%`H@$W%UgeU6NDNQydkH4CI<*l%$>F6B3hRGn}QgqNgSpzo{M_7`*nEBF=@^7G9%A7Xlru?~ Pz~H!~U4WaFiNP8Gr(sg$ diff --git a/gen/wrappers/__init__.py b/gen/wrappers/__init__.py index 93a88bc..ce56bf2 100644 --- a/gen/wrappers/__init__.py +++ b/gen/wrappers/__init__.py @@ -150,16 +150,15 @@ class AbstractWrapper(object): + style=":url(bannerName, bg=True) + '; background-repeat:no-repeat;\ + position:relative'"> + +
- - - - - - + :tool.pxLinks