alfonsodg / demo-web2py Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
From [email protected] on March 01, 2008 21:54:05
What is the expected output?
Why not support python 2.4? Please provide any additional information below. I'v made a patch about python 2.4 support. I'v done two things:
I'v made some simple tests and didn't found bugs so far.
Attachment: support2.4.diff
Original issue: http://code.google.com/p/web2py/issues/detail?id=3
From [email protected] on June 18, 2008 17:58:39
What steps will reproduce the problem? 1. create a 'text' property
2. perform a search that compares == a string
3. return no results
What is the expected output?
should return matches
What do you see instead?
returns empty set What version of the product are you using? On what operating system? r263 Please provide any additional information below. Are there some unit tests that I can run against the GAE data store?
Original issue: http://code.google.com/p/web2py/issues/detail?id=13
From [email protected] on March 09, 2008 23:52:20
Please provide any additional information below. From sql.py:836
if field.type[:9]=='reference':
referee=field.type[10:].strip()
Should 'referee' in 837 be 'reference' like in 836?
Original issue: http://code.google.com/p/web2py/issues/detail?id=7
From [email protected] on August 12, 2009 04:46:04
What steps will reproduce the problem? 1. add an image to a css file in static/(images/myimage.jpg)
2. put myimage.jpg in static/images
What is the expected output?
the image should be displayed (the url should be relative to the directory
that contains the css)
What do you see instead?
the url loses the application and controller name:
(http://localhost/images/myimage.jpg
What version of the product are you using?
Version 1.65.11 (2009-08-04 16:42:46)
On what operating system?
Linux Please provide any additional information below. example of css code:
background: url(images/myimage.jpg) no-repeat;
Original issue: http://code.google.com/p/web2py/issues/detail?id=48
From [email protected] on June 30, 2008 17:55:21
Alter Ego comments should preserve basic formatting, like newlines.
Trying to paste formatted code into a comment removes all the newlines and
makes the code unreadable.
example: http://mdp.cti.depaul.edu/AlterEgo/default/show/148
Original issue: http://code.google.com/p/web2py/issues/detail?id=17
From [email protected] on January 25, 2008 03:30:39
Original issue: http://code.google.com/p/web2py/issues/detail?id=1
From [email protected] on June 06, 2009 10:50:53
What is the expected output? What do you see instead? Expected: redirection to http_referer if it is not empty. Instead: redirection to settings.login_next. What version of the product are you using? On what operating system? latest trunk (1.63.5) Please provide any additional information below. Type in file gluon/tools.py:661
Original issue: http://code.google.com/p/web2py/issues/detail?id=38
From [email protected] on June 18, 2008 23:34:21
Please provide any additional information below. if left.type=='text:
Original issue: http://code.google.com/p/web2py/issues/detail?id=14
From [email protected] on June 18, 2008 10:49:42
What steps will reproduce the problem? 1. return dict(xml=XML(None)) from function 2. 3. What is the expected output?
None, or no output
What do you see instead?
html.py", line 147, in _xml
co=''.join([xmlescape(component) for component in self.components])
TypeError: sequence item 0: expected string, NoneType found What version of the product are you using? On what operating system? r263 Please provide any additional information below.
Original issue: http://code.google.com/p/web2py/issues/detail?id=11
From [email protected] on July 05, 2008 06:02:44
What steps will reproduce the problem? 1. Open any page of the administration panel
2. Copy and paste the link to http://validator.w3.org/check# or use Your
browsers feature if it has one :)
3. Examine the output What is the expected output? What do you see instead? I expect "This Page Is Valid XHTML 1.0 Strict!" like in the django auto-
admin.
Instead I get "This page is not Valid XHTML 1.0 Strict!"
/admin/default/index - Failed validation, 3 Errors
/admin/default/site - Failed validation, 11 Errors
/admin/default/about/welcome - Failed validation, 8 Errors
/admin/default/edit/welcome/ABOUT - Failed validation, 6 Errors
/admin/default/design/welcome - Failed validation, 33 Errors
/admin/default/errors/welcome (with no reports on the list) - Failed
validation, 18 Errors
I stopped checking at this point. In my opinion the whole administration
interface should be valid. What version of the product are you using? On what operating system? web2py Version 1.37 (2008-06-26 16:15:09) on Microsoft Windows Vista
running in Opera 9.51
Original issue: http://code.google.com/p/web2py/issues/detail?id=19
From [email protected] on August 25, 2008 22:29:15
What steps will reproduce the problem? 1. I am using web2py on google app engine :
from gluon.contrib import gql
dba=gql.GQLDB()
dba.define_table('users',
SQLField('name'),
SQLField('email'))
dba.define_table('comments',SQLField('content'),SQLField('writer',dba.users))
the I get these error logs :
dba.define_table('comments',SQLField('content'),SQLField('writer',dba.users)
)
File "D:\pythons\web2py\gluon\sql.py", line 856, in init
if requires==sqlhtml_validators: requires=sqlhtml_validators(type,length)
File "D:\pythons\web2py\gluon\sql.py", line 201, in sqlhtml_validators
try: return v[field_type[:9]]
TypeError: unhashable type What is the expected output? What do you see instead? What version of the product are you using? On what operating system? i am base on the latest code from svn Please provide any additional information below. i think it is cause by line 844 in gluon/sql.py :
if isinstance(type,SQLTable): type='reference '+type._tablename
here type is instance of gluon.contrib.gql.SQLTable not a
gluon.sql.SQLTable , so the following code : type='reference
'+type._tablename ; won't run , and it make the error
I think 2 way to fix this :
but I don't think this way is good enough , since i found these code :
isinstance(left,SQLField) , isinstance(left,SQLTable) , appear in sql.py
more than one times
Original issue: http://code.google.com/p/web2py/issues/detail?id=22
From [email protected] on August 05, 2008 23:48:26
The attached file memdb.py uses the DAL to wrap memcache.
It has doctests that stub the google memcache client.
Use like so:
from gluon.contrib.memdb import *
from google.appengine.api.memcache import Client
session.connect(request,response,db=MEMDB(Client()))
Attachment: memdb.py
Original issue: http://code.google.com/p/web2py/issues/detail?id=21
From [email protected] on January 29, 2009 16:34:26
I'm working through migrating my app from T2 to tools.py.
Starting with Auth & will then look at Crud once this is completed (& then
finally the integration of the 2 :) )
When I 'Register' I get a message 'verification email sent' even when
I've not yet set 'auth.settings.mailer=mail'
This is because that is currently the string for
self.messages.on_registration_flash
I think we need 2 strings here - 1 for email verification & 1 for no-email
verification.
If no email verification required then user should be automatically
logged-in (as per nemik's Patch: http://groups.google.com/group/web2py/msg/175ceca92b19713b )
I can login with the just-registered user (no email actually sent).
When I 'Logout' then I get this traceback:
File "C:\Bin\web2py\gluon\tools.py", line 385, in call
elif args[0]=='logout': return self.logout()
File "C:\Bin\web2py\gluon\tools.py", line 512, in logout
redirect(next or self.settings.next)
File "C:\Bin\web2py\gluon\http.py", line 77, in redirect
location = location.replace('\r','%0D').replace('\n','%0A')
AttributeError: 'NoneType' object has no attribute 'replace'
This is because the logout() function has no 'Next' when it is called:
elif args[0]=='logout': return self.logout()
If I edit my Profile & submit it I get this traceback:
File "C:\Bin\web2py\gluon\tools.py", line 391, in call
elif args[0]=='profile': return self.profile()
File "C:\Bin\web2py\gluon\tools.py", line 669, in profile
self.log_event('user [%s] edited profile' % auth.user.id)
NameError: global name 'auth' is not defined
Should be self.user.id
Also the strings in the Auth & Crud classes should be localisable via T().
This can be done in the same way as T2 by adding T to the list of variables
passed:
class Auth(object):
def init(self,environment,T,db=None):
Instantiate in Model via:
auth=Auth(globals(),T,db)
I have provided a patch which rectifies some of these issues.
Attachment: tools.py.patch
Original issue: http://code.google.com/p/web2py/issues/detail?id=27
From [email protected] on July 30, 2009 06:33:15
** This is NOT a web2py bug. I have added it here to keep it in mind. **
To set web2py google code page to allow users to create "Feature Requests".
In this way users can vote and therefore you would have an extra feedback
from the community. In the same time good ideas would not risk of being
forgotten in the mailing list.
from Massimo:
OK with me. Is this something I need to setup?
Original issue: http://code.google.com/p/web2py/issues/detail?id=44
From [email protected] on July 29, 2009 05:45:01
What steps will reproduce the problem? 1. click on change password
2. insert a wrong password
What is the expected output?
"wrong password" or "password not valid" etc..
What do you see instead?
"value not in database!"
What version of the product are you using?
1.65.7 (2009-07-28 18:50:03)
On what operating system?
Linux Please provide any additional information below.
Original issue: http://code.google.com/p/web2py/issues/detail?id=42
From [email protected] on July 05, 2008 05:54:21
What steps will reproduce the problem? 1. Run web2py
2. Go to the administration panel
3. Edit some code What is the expected output? What do you see instead? I expect to see the code editor like in firefox, but instead I get a
normal textarea What version of the product are you using? On what operating system? web2py Version 1.37 (2008-06-26 16:15:09) on Microsoft Windows Vista and
Opera version 9.51 Please provide any additional information below. I saw this reported on the google newsgroup here is the link: http://groups.google.com/group/web2py/browse_thread/thread/ c2cfa8b14cc4b007/4f2dbc05b11e77ba?lnk=gst&q=opera#4f2dbc05b11e77ba
Here is an article from Opera about a recent problem with tinymce http://
dev.opera.com/articles/view/a-browser-sniffing-warning-the-trouble/. I
don't know if web2py uses tinymce but if so then updating it would solve
the problem.
Original issue: http://code.google.com/p/web2py/issues/detail?id=18
From [email protected] on January 29, 2009 17:53:29
has_membership check broken.
See patch for fix
Attachment: has_membership.patch
Original issue: http://code.google.com/p/web2py/issues/detail?id=29
From [email protected] on February 11, 2009 15:32:33
I think self.settings.login_next should be more important than
request.vars._next.
Line 533:
next = self.settings.login_next or request.vars._next
not
next = request.vars._next or self.settings.login_next
Original issue: http://code.google.com/p/web2py/issues/detail?id=34
From [email protected] on March 26, 2009 07:19:58
In [1]: validator = IS_LENGTH(1)
In [2]: validator('a')
Out[2]: ('a', None)
In [3]: validator('aa')
Out[3]: ('aa', 'too long!')
In [4]: validator('á')
Out[4]: ('\xc3\xa1', 'too long!')
In [5]: validator('á'.decode('utf-8'))
Out[5]: (u'\xe1', None)
In [6]: validator('ж'.decode('utf-8'))
Out[6]: (u'\u0436', None)
Original issue: http://code.google.com/p/web2py/issues/detail?id=35
From [email protected] on August 11, 2009 09:39:57
** This is NOT a web2py bug. I have added it here to keep it in mind. **
as from http://groups.google.com/group/web2py/browse_thread/thread/8425772ffec9785/e809bbfe77f739b9?lnk=gst&q=password+recovery+bug#e809bbfe77f739b9 change the "retrieve password" behaviour. It is very annoying that anybody
can chage my password....
or (for backward compatibility) create a new "reset password" that uses
some more conventional process....
Original issue: http://code.google.com/p/web2py/issues/detail?id=47
From [email protected] on February 08, 2009 17:32:58
Most User Registration forms have 2 inputs for password entry.
This is needed since it is easy to typo the password without realising
(since obscured) thus needing the password retrieval system right away.
tools.py uses SQLFORM to build it's form.
Could we patch this to allow an extra field to be added to the Form's Table?
A simple bit of javascript could be used to compare the 2 boxes before
allowing the form to be submitted (The controller's Form doesn't need to
process the extra field in any way)
F
Original issue: http://code.google.com/p/web2py/issues/detail?id=30
From [email protected] on March 04, 2008 00:13:54
What steps will reproduce the problem? 1. Create a view just like "test/index" What is the expected output? What do you see instead? It will report "Cann't create file test/index.html" What version of the product are you using? On what operating system? trunk, windows xp Please provide any additional information below. It's because the wrong way to create multi level directories in windows xp.
When a path has driver, just like 'd:/abc', when you split it with '/', and
join it again, the '/' after the dirver will be lost.
{{{
a = 'd:/abc'
import os
os.path.join(*a.split('/'))
'd:abc'
}}}
So it's not correct, and I changed the code of making multi level directories.
Original issue: http://code.google.com/p/web2py/issues/detail?id=6
From [email protected] on June 09, 2009 06:05:41
What steps will reproduce the problem? 1. Login correctly on Auth-enabled site
2. Go to profile or some user resticted page
3. Click Logout
4. You will be redirected to Login form with hidden _next field that has
value of url to referred page (/user/profile/)
5. Try to input wrong login data
6. You will be redirected to Login form once again, but _next field value
will be /user/login/ What is the expected output? What do you see instead? _next variable should be consistent in Login form. What version of the product are you using? On what operating system? Latest trunk Please provide any additional information below. Suggested fix is in file gluon/tools.py:712, replace line by
return form
Original issue: http://code.google.com/p/web2py/issues/detail?id=39
From [email protected] on March 01, 2008 23:04:29
What steps will reproduce the problem? 1. Creating new languages file What is the expected output? What do you see instead? I want it can create new language file successful, but there is and error
"Cann't create file xx" What version of the product are you using? On what operating system? svn trunk. Windows platform. Please provide any additional information below. I checked, it's because the os.sep is different from different platform, in
windows platform it's ''. But in admin/controllers/default.py(create_file
method), it's use '/' to find the app name:
app=path.split('/')[-3]
so, above code will not correct in windows platform, because the path maybe:
D:\project\svn\web2py\applications\admin/..\cookbook/languages/
so the value of app will be:
'..\cookbook'
And I change the apath function to fix this bug:
def apath(path=''): return
os.path.join(request.folder,'..',path).replace('', '/')
I replace all '' with '/'.
And maybe you need to think about it carefully, and consider maybe you
should use: os.path.normcase and os.sep to do these things, just a suggestion.
Attachment: fixcreatelanguage.diff
Original issue: http://code.google.com/p/web2py/issues/detail?id=4
From [email protected] on June 18, 2008 14:36:34
What steps will reproduce the problem? 1. every post in db.posts has db.posts.valid=True
2. db(db.posts.valid==True).select()
3. returns empty set
What is the expected output?
should return all valid==True rows
What do you see instead?
empty set What version of the product are you using? On what operating system? r263 Please provide any additional information below. I am not even sure how to debug this, is there a way to print the generated
GQL?
Original issue: http://code.google.com/p/web2py/issues/detail?id=12
From [email protected] on June 19, 2008 14:03:04
obj1 = FirstModel()
obj1.put()
obj.key()
datastore_types.Key.from_path('FirstModel', 2, _app=u'web2py')
obj.key().kind()
'FirstModel'
obj.key().id()
2
obj.key().name()
None
obj.key().id_or_name()
2obj1 = FirstModel(key_name="xyz123")
obj1.put()
obj.key()
datastore_types.Key.from_path('FirstModel', u'xyz123', _app=u'web2py')
obj.key().kind()
'FirstModel'
obj.key().id()
None
obj.key().name()
'zyz123'
obj.key().id_or_name()
'zyz123'
A key can be encoded to a string by passing the Key object to str() (or
calling the object's str() method). A string-encoded key is an opaque
value using characters safe for including in URLs. The string-encoded key
can be converted back to a Key object by passing it to the Key constructor
(the encoded argument).
str(key)
'agZ3ZWIycHlyEAsSCkZpcnN0TW9kZWwYBww'Key('agZ3ZWIycHlyEAsSCkZpcnN0TW9kZWwYBww')
datastore_types.Key.from_path('FirstModel', 7L, _app=u'web2py')
I would say reference properties should be strings determined by str(key),
so that keys uniquely identify (Kind,id_or_name,_app)
Should be able to directly assign a record to a reference type, and
str(record.key()) is called to set the reference property.
Should also be able to do some type checking by verifying the key.kind() of
the assigned record matches the key.kind() of the reference property.
Original issue: http://code.google.com/p/web2py/issues/detail?id=16
From [email protected] on June 17, 2008 15:53:38
What steps will reproduce the problem? 1. db(db.users.id == 2000).select() 2. 3. What is the expected output?
None, or an empty rowset
What do you see instead?
gql.py", line 416, in _select_except
if t=='id': new_item.append(int(item.key().id()))
AttributeError: 'NoneType' object has no attribute 'key' What version of the product are you using? On what operating system? r262 Please provide any additional information below.
Original issue: http://code.google.com/p/web2py/issues/detail?id=10
From [email protected] on February 11, 2009 13:50:12
Hello,
i think that when user is logged in, he can't register again. I've made
patch. Look & do what you want ;).
Attachment: logged_cant_register.diff
Original issue: http://code.google.com/p/web2py/issues/detail?id=33
From [email protected] on August 09, 2009 20:38:47
What steps will reproduce the problem? Here ( http://pastebin.com/f7a40115 ) is a simple little program which just
calls a remote function "echo" and puts the return value into the text of a
label. Nothing special. (There may be extra baggage in the example
because I widdled it down from another app.)
I would expect the problem could be reproduced by running any pyjamas app
that does ajax requests using hulahop. What is the expected output? What do you see instead? A window opens and then a second later closes and I get a stack trace at
the terminal. I would expect it to display my app. All of the examples
that I have tried seem to work including kitchen sink and mail. I think
this is a jsonrpc-specific bug. Unfortuantly, to me, the stack trace isn't
overly helpful.
bash-4.0$ python Transactions.py
engine hulahop
importing hula
/home/gdw/.themes/Dust Burnt/gtk-2.0/gtkrc:172: Unable to locate image file
in pixmap_path: "toolbar_light.png"
/home/gdw/.themes/Dust Burnt/gtk-2.0/gtkrc:174: Background image options
specified without filename
returning /home/gdw/.pyjd/prefs.js for key NS_APP_PREFS_50_FILE
/usr/lib/xulrunner-1.9.1/python/xpcom/init.py:54: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
self.message = message
loading 0.0
loading 0.0
loading 0.0
loading 0.0
loading 0.0
loading 0.0
loading 0.0
loading 0.0
loading 0.0
loading 0.142857142857
loading 0.285714285714
loading 0.428571428571
loading 0.571428571429
loading 0.714285714286
loading 0.857142857143
loading 0.75
loading 0.666666666667
loading 0.6
loading 0.545454545455
loading 0.545454545455
loading 0.5
loading 0.583333333333
loading 0.666666666667
loading 0.75
loading 0.833333333333
loading 0.916666666667
loading 0.846153846154
loading 0.846153846154
loading 0.923076923077
loading 1.0
loading 0.928571428571
loading 1.0
loading 0.933333333333
loading 0.933333333333
loading 0.875
loading 0.9375
loading 0.9375
loading 1.0
loading 0.941176470588
loading 0.941176470588
loading 1.0
loading 1.0
loaded
set_main_frame <Browser object at 0x8ea3cd4 (hulahop+webview+WebView at
0x8f31018)>
loading 1.0
URL HERE: http://127.0.0.1/../../default/service
xmlHttp None None http://127.0.0.1/../../default/service
{"params":[],"id":1,"method":"echo"}
<pyjamas.JSONService.JSONResponseTextHandler instance at 0x8e78aec>
['QueryInterface', 'cmp', 'doc', 'eq', 'float',
'getattr', 'hash', 'init', 'int', 'long', 'module',
'neq', 'repr', 'setattr', 'str', 'unicode',
'build_all_supported_interfaces', 'comobj', '_do_conversion',
'get_classinfo_repr', 'interface_infos', 'interface_names',
'interfaces', 'name_to_interface_iid', 'object_name',
'_remember_interface_info', 'tried_classinfo', 'queryInterface']
<bound method _Interface.open of <XPCOM interface 'nsIXMLHttpRequest'>>
['call', 'class', 'cmp', 'delattr', 'doc',
'format', 'func', 'get', 'getattribute', 'hash',
'init', 'new', 'reduce', 'reduce_ex', 'repr',
'self', 'setattr', 'sizeof', 'str', 'subclasshook',
'im_class', 'im_func', 'im_self']
http://localhost/simpleJson/default/service
Traceback (most recent call last):
File "Transactions.py", line 40, in
app.onModuleLoad()
File "Transactions.py", line 16, in onModuleLoad
self.remote.echo(self)
File "/usr/share/pyjamas/library/pyjamas/JSONService.py", line 105, in
call
params[:-1], handler)
File "/usr/share/pyjamas/library/pyjamas/JSONService.py", line 56, in
sendRequest
content_type="text/x-json"):
File "/usr/share/pyjamas/library/pyjamas/HTTPRequest.py", line 19, in
asyncPost
return_xml, content_type)
File "/usr/share/pyjamas/library/pyjamas/HTTPRequest.py", line 97, in
asyncPostImpl
print url, xmlHttp.open("POST", url)
File "<XPCOMObject method 'open'>", line 3, in open
xpcom.Exception/usr/lib/xulrunner-1.9.1/python/xpcom/init.py:62:
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
message = self.message
: -1041039359 (-1041039359) What version of the product are you using? On what operating system? Linux. Hulahop. Xulrunner. Pyjamas rev 1121.
Original issue: http://code.google.com/p/web2py/issues/detail?id=45
From [email protected] on March 03, 2008 00:38:33
What steps will reproduce the problem? 1. N/A see below 2. 3. What is the expected output? What do you see instead? What version of the product are you using? On what operating system? Please provide any additional information below. Minor issue: a type on line 37 of gluon/languages.py.
In Class lazyT:
def xml(self):
return cgi.esacpe(str(self))
should be:
def xml(self):
return cgi.escape(str(self))
'escape' was misspelled 'esacpe'.
Original issue: http://code.google.com/p/web2py/issues/detail?id=5
From [email protected] on November 01, 2008 08:19:38
OK this is a very minor issue but I coulnd't resist reporting it.
cookbook p.2
while enforcing a vary good and safe programming style.
=> very good
From the web2py prospective
=> did you mean perspective?
cookbook p.5
it is a clone of the welcome applicaiton
=> application
cookbook p.14, first item in the list
starting with pass (exemptions
=> exceptions
cookbook p.21
HTTP building objects
=> isn't it HTML building objects?
TH,TITLE
=> TH, TITLE
scripts/web2py.ubuntu.sh
startup script for Ubnutu and Debian Linux servers
=> Ubuntu
Cheers
Original issue: http://code.google.com/p/web2py/issues/detail?id=23
From [email protected] on April 14, 2009 02:18:14
What steps will reproduce the problem? 1. Create a new application
2. Take a look at the db.py
3. Line 29 calls boolean 'booelan' What is the expected output? What do you see instead? it should be boolean. booelean does not exist. Minor problem ^^ What version of the product are you using? On what operating system? 1.61
Original issue: http://code.google.com/p/web2py/issues/detail?id=37
From [email protected] on June 16, 2009 13:50:11
Please provide any additional information below. web2py_manual.pdf page 92, second last paragraph, last sentence, just above
"[about]":
IS:
If the application was installed form a packed compiled file,
then this is not safe because there is source code to revert to and the
application will not work anymore.
SHOULD BE:
If the application was installed from a packed compiled file,
then this is not safe because there is no source code to revert to and the
application will not work anymore.
Original issue: http://code.google.com/p/web2py/issues/detail?id=41
From [email protected] on July 10, 2008 02:18:10
This was the the traceback:
Traceback (most recent call last):
File "/base/data/home/apps/ruly/1.6/gluon/main.py", line 194, in wsgibase
session._try_store_in_db(request,response)
File "/base/data/home/apps/ruly/1.6/gluon/globals.py", line 165, in
_try_store_in_db
session_data=cPickle.dumps(dict(self)),
File "/base/python_dist/lib/python2.5/pickle.py", line 1359, in dumps
Pickler(file, protocol).dump(obj)
File "/base/python_dist/lib/python2.5/pickle.py", line 218, in dump
self.save(obj)
File "/base/python_dist/lib/python2.5/pickle.py", line 280, in save
f(self, obj) # Call unbound method with explicit self
File "/base/python_dist/lib/python2.5/pickle.py", line 643, in save_dict
self._batch_setitems(obj.iteritems())
File "/base/python_dist/lib/python2.5/pickle.py", line 657, in
_batch_setitems
save(v)
File "/base/python_dist/lib/python2.5/pickle.py", line 325, in save
self.save_reduce(obj=obj, *rv)
File "/base/python_dist/lib/python2.5/pickle.py", line 394, in save_reduce
save(func)
File "/base/python_dist/lib/python2.5/pickle.py", line 280, in save
f(self, obj) # Call unbound method with explicit self
File "/base/python_dist/lib/python2.5/pickle.py", line 747, in save_global
(obj, module, name))
PicklingError: Can't pickle <function _reconstructor at
0x9d7374991e63bf68>: it's not the same object as copy_reg._reconstructor
The get the app running on GAE, I commented out the session from forms and
flash.
Also when I first tried to comment out: session.connect(request,response,db=db)
The GAE app raised an error trying to write to disk.
This is running from trunk.
Original issue: http://code.google.com/p/web2py/issues/detail?id=20
From [email protected] on June 19, 2008 12:16:29
Currently, text (and probably blob) are allowed in orderby...
The datastore supports two value types for storing text: short text strings
shorter than 500 bytes, and long text strings longer than 500 bytes. Short
strings are indexed and can be used in query filter conditions and sort
orders. Long strings are not indexed and cannot be used in filter
conditions or sort orders.
The datastore also supports a type for non-text byte strings, or "blobs."
As with long text strings, blobs are not indexed, and cannot be used in
query filters or sort orders.
Original issue: http://code.google.com/p/web2py/issues/detail?id=15
From [email protected] on January 25, 2009 06:03:06
What steps will reproduce the problem? db.define_table('person',
SQLField('name'),
SQLField('email'),
SQLField('phone'),
SQLField('foto','upload'),
SQLField('manager','reference person')
) What version of the product are you using? On what operating system? trunk
Attached is a patch that fixes the bug in gql.py and adds self references
to the doctests.
Attachment: gql_self_ref_doctests.patch
Original issue: http://code.google.com/p/web2py/issues/detail?id=25
From [email protected] on June 15, 2009 16:33:38
What steps will reproduce the problem? 1. Downloaded from svn web2py Version 1.64.1 (2009-06-15 10:41:06)
2. chdir to web2py directory
3. python web2py.py
:1: DeprecationWarning: the md5 module is deprecated; use hashlib
instead
Error ticket for "cms"
Ticket 127.0.0.1.2009-06-15.17-25-51.f1d9476b-507e-4c65-a839-a011df685d7f
Error traceback
Traceback (most recent call last):
File ".../web2py/gluon/restricted.py", line 107, in restricted
exec ccode in environment
File ".../web2py/applications/cms/controllers/access.py", line 49, in
File ".../web2py/gluon/globals.py", line 100, in
self._caller = lambda f: f()
File ".../web2py/applications/cms/controllers/access.py", line 47, in
change
if ch: redirect(request.vars.forward)
File ".../web2py/gluon/http.py", line 99, in redirect
location = location.replace('\r', '%0D').replace('\n', '%0A')
AttributeError: 'list' object has no attribute 'replace'
In file: .../web2py/applications/cms/controllers/access.py
if not session.token: redirect(LOGIN)
def change():
if len(request.args)<2: redirect(MAIN)
table_name=request.args[0]
record_id=request.args[1]
if not is_owner(user_id,table_name,record_id):
session.flash="not authorized"
redirect(MAIN)
access_types=db[table_name].access_types
rows=db(db.access.table_name==table_name)
(db.access.record_id==record_id)
(db.access.users_group==db.users_group.id)
.select(orderby=db.access.id)
group_keys=dict([(r.users_group.id,r.access.access_type) for r in rows])
keys=dict([(r.access.id,r.access.access_type) for r in rows])
accesses=[]
for g in session.groups:
if table_name=='users_group' and g.id==int(record_id): continue
item=Storage()
item.group_id=g.id
item.group_name=g.name
item.membership_type=g.membership_type
if group_keys.has_key(g.id): item.access_type=group_keys[g.id]
else: item.access_type='none'
accesses.append(item)
ch=False
for key,value in request.vars.items():
if key=='forward': continue
ch=True
g=int(key[1:])
if g==g_tuple[1]: continue
if g==g_tuple[0] and user_id!=1: continue
if group_keys.has_key(g):
s=db(db.access.users_group==g)
(db.access.record_id==record_id)
(db.access.table_name==table_name)
if value=='none':
s.delete()
elif value in access_types:
s.update(access_type=value)
elif value!='none' and value in access_types:
db.access.insert(users_group=g,
table_name=table_name,
record_id=record_id,
access_type=value)
if ch: redirect(request.vars.forward)
return dict(accesses=accesses,access_types=access_types)
response._vars=response._caller(change)
Original issue: http://code.google.com/p/web2py/issues/detail?id=40
From [email protected] on January 29, 2009 17:40:59
Here is a patch which adds an option to reload a module from the Design UI
(without this the ability to Edit is rather limited)
Attachment: reload.patch
Original issue: http://code.google.com/p/web2py/issues/detail?id=28
From [email protected] on February 11, 2009 13:40:09
apply the patch :-)
Attachment: botton_to_button.diff
Original issue: http://code.google.com/p/web2py/issues/detail?id=32
From [email protected] on January 25, 2008 21:21:08
There are minor spelling errors on the following pages. (Note: I typed in
the corrections, but could have made a mistake myself, so please double check.)
At http://mdp.cti.depaul.edu :
s/estabilished/established/ http://mdp.cti.depaul.edu/examples/default/download s/applicance/appliance/ http://mdp.cti.depaul.edu/examples/default/features s/secuity/security/
s/malitious/malicious/ http://mdp.cti.depaul.edu/examples/default/faq s/framwork/framework/
s/applciations/applications/g
s/applicaitons/applications/g
s/renederd/rendered/
s/exected/executed/ <--- if that is what you're trying to say http://mdp.cti.depaul.edu/examples/default/examples :
s/consitions/conditions/
s/idiosincrasies/idiosyncrasies/
The pdf file has some spelling errors, too. However, I suspect the pdf was
generated from these pages. (or some other source)
Original issue: http://code.google.com/p/web2py/issues/detail?id=2
From [email protected] on July 29, 2009 05:53:45
What steps will reproduce the problem? 1. click on retrieve password
2. insert an invalid email
What is the expected output?
What do you see instead?
Original issue: http://code.google.com/p/web2py/issues/detail?id=43
From [email protected] on August 10, 2009 09:47:51
While running withing GAE devserver, errors occur, because DALStorage,
SQLCallableList are undefined in gql.py.
Adding this row fixes this:
from memdb import DALStorage, SQLCallableList
Original issue: http://code.google.com/p/web2py/issues/detail?id=46
From [email protected] on June 14, 2008 22:25:32
What steps will reproduce the problem? from gluon.contrib.gql import *
db = GQLDB()
session.connect(request,response,db=db)
def index():
session.flash=T('Welcome to web2py')
redirect(URL(r=request,f='show'))
def show():
return dict(session=session) What is the expected output? What do you see instead? The string appears in session, so sessions work, but response.flash does
not receive session.flash after the redirect and the string remains in the
session. What version of the product are you using? On what operating system? r259 Please provide any additional information below. If I comment out the 3 lines:
Then the example works, but its not using GAE
Original issue: http://code.google.com/p/web2py/issues/detail?id=9
From [email protected] on June 08, 2008 14:11:32
What steps will reproduce the problem? 1. Upload the attached application with web2py.
2. Use your favorite browser to view the 'bad_xml' application[1].
3. Observe failure (invalid XML).
4. For extra credit, paste the output into the W3C XML Validator[2], and
observe the "Failed validation, 4 Errors" result. What is the expected output? What do you see instead? I would expect well formed XML (e.g. passes W3C validation).
print TAG.root(TAG.option_(_value=0, _checked=None))
Renders: '''<root><option checked value="0"/></root>'''
To be valid XML, the 'checked' attribute needs to be followed by an
equal sign and a quoted value. (See XML Attribute definition.[3])
A better approach might be to drop the attribute for any attribute that
has a value of 'None' because that would be semantically the same as a
missing attribute. What version of the product are you using? On what operating system? * Web2py/VERSION: Version 1.34 (2008-05-22 08:56:38)
Attachment: web2py.app.bad_xml.tar
Original issue: http://code.google.com/p/web2py/issues/detail?id=8
From [email protected] on August 12, 2009 21:34:59
The admin interface does not allow logins from IPv6 addresses because of a
validator problem - see this thread: http://groups.google.com/group/web2py/browse_thread/thread/726da9b5eabe2bf5 From localhost request.env.remote_addr is defined as: '::1' and from
127.0.0.1 as: '::ffff:127.0.0.1'.
Original issue: http://code.google.com/p/web2py/issues/detail?id=51
From [email protected] on January 10, 2009 02:39:01
gives error
File
"/home/.../software/development/web/google_appengine/web2py/gluon/contrib/gql.py",
line 335, in init
except: raise SyntaxError, "id value must be integer"
SyntaxError: id value must be integer
ok when changed to 'right'
Original issue: http://code.google.com/p/web2py/issues/detail?id=24
From [email protected] on February 10, 2009 16:54:02
What steps will reproduce the problem? 1. Export a table
2. Import it again What is the expected output? What do you see instead? 1. Expect that Validation occurs - it doesn't.
(e.g. in the example app
db.users.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db, 'users.email')]
Yet duplicate email addresses result from an import.
This is definitely not what we want for UUID fields...I would like
options to either update the row with the same UUID field or else
simply ignore it.
Python produces output like this using import datetime; print
str(datetime.datetime.now()):
2009-01-12 20:12:35.390000
The CSV has data like this:
12/01/2009 19:57:55 What version of the product are you using? On what operating system? Trunk on Windows XP (en-gb locale)
Original issue: http://code.google.com/p/web2py/issues/detail?id=31
From sherdim on August 12, 2009 06:41:46
web2py has special procedure to reveal original client ip for identification
it is set in request.client with function get_client()
but in httpserver.log only plain remote_addr is logged.
For deployment scheme with proxy from the main web-server to WSGI on the
same machine IP address is the same for ALL requests! What is the expected output? What do you see instead? Output from the sophisticated get_client() is expected! What version of the product are you using? On what operating system? 1.65, windows not-binary, from sources
Thanks, Dmitry
Original issue: http://code.google.com/p/web2py/issues/detail?id=49
From [email protected] on March 27, 2009 21:05:00
Previous misspelled at bottom of editing pages on v1.59
"currently saved or to previour version."
Original issue: http://code.google.com/p/web2py/issues/detail?id=36
From [email protected] on August 12, 2009 21:32:26
sqlite does not support cascade deletions - see this thread: http://groups.google.com/group/web2py/browse_thread/thread/a5a2da933c62f5f0 To take account of this, the DAL could add sqlite triggers for sqlite to do
the equivalent. (See Yarko's post for explanation.)
Original issue: http://code.google.com/p/web2py/issues/detail?id=50
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.