update link fixed, thanks Niphlod

This commit is contained in:
mdipierro
2012-08-30 08:09:33 -05:00
parent 04fe5199f1
commit a8580673b6
5 changed files with 26 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.2 (2012-08-30 08:05:05) stable Version 2.0.2 (2012-08-30 08:09:29) stable
+2 -2
View File
@@ -140,8 +140,8 @@ def check_version():
return SPAN('You should upgrade to version %s' % version_number) return SPAN('You should upgrade to version %s' % version_number)
else: else:
return sp_button(URL('upgrade_web2py'), T('upgrade now')) \ return sp_button(URL('upgrade_web2py'), T('upgrade now')) \
+ XML(' <strong class="upgrade_version">%s</strong>' % version_number) + XML(' <strong class="upgrade_version">%s.%s.%s</strong>' \
% version_number[:3])
def logout(): def logout():
""" Logout handler """ """ Logout handler """
+17
View File
@@ -16,6 +16,7 @@
'Are you sure you want to delete this object?': 'Are you sure you want to delete this object?', 'Are you sure you want to delete this object?': 'Are you sure you want to delete this object?',
'Buy this book': 'Buy this book', 'Buy this book': 'Buy this book',
'Cannot be empty': 'Cannot be empty', 'Cannot be empty': 'Cannot be empty',
'Check to delete': 'Check to delete',
'Client IP': 'Client IP', 'Client IP': 'Client IP',
'Community': 'Community', 'Community': 'Community',
'Components and Plugins': 'Components and Plugins', 'Components and Plugins': 'Components and Plugins',
@@ -41,7 +42,9 @@
'First name': 'First name', 'First name': 'First name',
'Forms and Validators': 'Forms and Validators', 'Forms and Validators': 'Forms and Validators',
'Free Applications': 'Free Applications', 'Free Applications': 'Free Applications',
'Group %(group_id)s created': 'Group %(group_id)s created',
'Group ID': 'Group ID', 'Group ID': 'Group ID',
'Group uniquely assigned to user %(id)s': 'Group uniquely assigned to user %(id)s',
'Groups': 'Groups', 'Groups': 'Groups',
'Hello World': 'Hello World', 'Hello World': 'Hello World',
'Hello World ## comment': 'Hello World ', 'Hello World ## comment': 'Hello World ',
@@ -56,7 +59,11 @@
'Layout Plugins': 'Layout Plugins', 'Layout Plugins': 'Layout Plugins',
'Layouts': 'Layouts', 'Layouts': 'Layouts',
'Live Chat': 'Live Chat', 'Live Chat': 'Live Chat',
'Logged in': 'Logged in',
'Logged out': 'Logged out',
'Login': 'Login', 'Login': 'Login',
'Logout': 'Logout',
'Lost Password': 'Lost Password',
'Lost password?': 'Lost password?', 'Lost password?': 'Lost password?',
'Menu Model': 'Menu Model', 'Menu Model': 'Menu Model',
'Modified By': 'Modified By', 'Modified By': 'Modified By',
@@ -70,9 +77,12 @@
'Other Recipes': 'Other Recipes', 'Other Recipes': 'Other Recipes',
'Overview': 'Overview', 'Overview': 'Overview',
'Password': 'Password', 'Password': 'Password',
"Password fields don't match": "Password fields don't match",
'please input your password again': 'please input your password again',
'Plugins': 'Plugins', 'Plugins': 'Plugins',
'Powered by': 'Powered by', 'Powered by': 'Powered by',
'Preface': 'Preface', 'Preface': 'Preface',
'Profile': 'Profile',
'Python': 'Python', 'Python': 'Python',
'Quick Examples': 'Quick Examples', 'Quick Examples': 'Quick Examples',
'Recipes': 'Recipes', 'Recipes': 'Recipes',
@@ -80,6 +90,8 @@
'Register': 'Register', 'Register': 'Register',
'Registration identifier': 'Registration identifier', 'Registration identifier': 'Registration identifier',
'Registration key': 'Registration key', 'Registration key': 'Registration key',
'Registration successful': 'Registration successful',
'Remember me (for 30 days)': 'Remember me (for 30 days)',
'Reset Password key': 'Reset Password key', 'Reset Password key': 'Reset Password key',
'Role': 'Role', 'Role': 'Role',
'Semantic': 'Semantic', 'Semantic': 'Semantic',
@@ -92,7 +104,12 @@
'This App': 'This App', 'This App': 'This App',
'Timestamp': 'Timestamp', 'Timestamp': 'Timestamp',
'Twitter': 'Twitter', 'Twitter': 'Twitter',
'User %(id)s Logged-in': 'User %(id)s Logged-in',
'User %(id)s Logged-out': 'User %(id)s Logged-out',
'User %(id)s Registered': 'User %(id)s Registered',
'User ID': 'User ID', 'User ID': 'User ID',
'value already in database or empty': 'value already in database or empty',
'Verify Password': 'Verify Password',
'Videos': 'Videos', 'Videos': 'Videos',
'View': 'View', 'View': 'View',
'Welcome': 'Welcome', 'Welcome': 'Welcome',
+1
View File
@@ -39,6 +39,7 @@ class WebClient(object):
session_regex = SESSION_REGEX): session_regex = SESSION_REGEX):
self.app = app self.app = app
self.postbacks = postbacks self.postbacks = postbacks
self.forms = {}
self.history = [] self.history = []
self.cookies = {} self.cookies = {}
self.default_headers = default_headers self.default_headers = default_headers
+5
View File
@@ -41,6 +41,11 @@ class TestWeb(unittest.TestCase):
client.get('index') client.get('index')
self.assertTrue('Welcome Homer' in client.text) self.assertTrue('Welcome Homer' in client.text)
client = WebClient('http://127.0.0.1:8000/admin/default/')
client.post('index',data=dict(password='hello'))
client.get('site')
client.get('design/welcome')
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()