From 9394490d33a2b38ebd10e8f48f6de3ebd0540f6d Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Sat, 18 Feb 2012 19:48:00 +0100 Subject: [PATCH] appy.gen: allow to define a method Tool.getHomePage that returns the URL of the home page for any user (authenticated, anonymous, manager, or any other code-based distinction); allow an app to define a 'ui' folder for storing new UI-related elements (pages, images, etc) or overriding standard Appy UI elements; logo.jog is replaced with banner.jpg (size 900 x 75px). --- gen/installer.py | 75 ++++++++++++++++++++++------------------ gen/mixins/ToolMixin.py | 28 +++++++++------ gen/ui/appy.css | 19 +++++----- gen/ui/logo.jpg | Bin 4364 -> 0 bytes gen/ui/query.pt | 2 +- gen/ui/search.pt | 2 +- gen/ui/template.pt | 15 ++++---- 7 files changed, 81 insertions(+), 60 deletions(-) delete mode 100644 gen/ui/logo.jpg diff --git a/gen/installer.py b/gen/installer.py index a7530eb..e38879d 100644 --- a/gen/installer.py +++ b/gen/installer.py @@ -13,13 +13,9 @@ from appy.shared.data import languages # ------------------------------------------------------------------------------ homePage = ''' - - -
- -
- -
+ + ''' errorPage = ''' $u3*TjD5WdQd+G1qWg_P*;J%O0(yOYU2_O+x629VpVX$^oobSfc7;PM=!4{9)N`c zR>p-I=B~{zt*dWjEP#_%kX8Ww%3!g08D%_HUH~hL$I9VxN&p9t8NL_YJ22F&eLMzY zv6#JoR;N-(KmssO$>4A@(1g9{X2E&bKK>43NaCIi1dJG#gxZaQ8H^H{^qT?gADC_* zGlPDChx`7qGBS{dzju!2;T~fh&;+`VwLlEt#{!^#NdBHZI1SMJfuZ}D8a^z4k0Tdo zkNCreVIM=Oi@`y)rJgGW6ci{p8F0H~Wbrth09Fx?lfld4{^J~Ix@%9>7eJu_J<;s$ z7(rPHM8DZlEsy|o|KzFJ@}Dy09vJ7ZOnC_6KQjeFv$rRO;5^MfZlpQ_$FEcWrFZ_! zVk$k5;LZr31<)c8NCcb~iA2)T(V`gG4lvNuGjOx8GO-=x;paQZgTV-hNQ(&w9Tvu5 z#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