Git Product home page Git Product logo

demo-web2py's Introduction

demo-web2py

demo-web2py's People

Contributors

alfonsodg avatar

Watchers

 avatar  avatar  avatar

demo-web2py's Issues

GAE search condition on 'text' does not compare == (fixed)

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

CSS does not translate relative images urls

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

Webpage issues

From [email protected] on January 25, 2008 03:30:39

  • On http://mdp.cti.depaul.edu/ the "(c) 2007" should be changed to "(c)
    2007, 2008".
  • The webpage should mention the online repository and link to http://code.google.com/p/web2py/ somewhere.
  • On the page http://mdp.cti.depaul.edu/examples/default/download :
    ** Typo: applicance -> appliance
    ** "for Unix (source)" should be changed to "Source code (all platforms)"
    or something like that, since the source is not specific to Unix.
    ** The "BEWARE: web2py requires Python 2.5." part could IMO be dropped,
    since it says so already at the beginning of the parenthesis.

Original issue: http://code.google.com/p/web2py/issues/detail?id=1

Typo in Auth.login()

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

XML(None) raises error (fixed)

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

Administration interface doesn't pass the w3schools Markup Validation

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

errors of define_table on Google app engine

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 :

  1. just change that line of code to :
    if not isinstance(type,str) : type='reference ' + type._tablename

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

  1. make gluon.contrib.gql.SQLTable extends gluon.sql.SQLTable and the same
    on SQLField , but I not sure if i will create other bugs

Original issue: http://code.google.com/p/web2py/issues/detail?id=22

Issues with Auth in tools.py

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

features requests

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

change password wording

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

Embeded python code editor does not work in Opera

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

feature request: reset password

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

Register should have a password confirmation box

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

Cann't create view files in windows platform(patch)

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

Lost _next var after invalid login (Auth tool)

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

Cann't create language file in windows platform(patch supplied)

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

GAE search conditions with 'boolean' do not work (Fixed)

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

GAE reference properties can be integers or strings

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()
2

obj1 = 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

db query for non-existing entity throws error instead of returning (FIXED)

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

JSONRPC bug with hula?

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

typo in languages.py line 37 - cgi.esacpe should be cgi.escape

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

typos in the cookbook PDF and scripts/web2py.ubuntu.sh

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

Minor Typographical Errors in Web2Py Book

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

problems with sessions on GAE

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

GAE text,blob disallowed in orderby (FIXED)

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

Self Reference on GAE

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

Errors During/After Installation from svn on Ubutntu Linux 9.04

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. What is the expected output?
    Tkinter based splash page.
  2. What do you see instead?
    WARNING:root:unable to import dbhash
    WARNING:root:GUI not available because Tk library is not installed
    default applications appear to be installed already
    web2py Enterprise Web Framework
    Created by Massimo Di Pierro, Copyright 2007-2009
    Version 1.64.1 (2009-06-15 16:00:25)
    Database drivers available: SQLite3
    Starting cron...
    choose a password:admin
    please visit:
    http://127.0.0.1:8000
    use "kill -SIGTERM 26384" to shutdown the web2py server
    WARNING:root:WEB2PY CRON: cron.master not found at .../web2py/applications/
    admin/cron/cron.master. Trying to re-create.
  3. What version of the product are you using?
    Version 1.64.1 (2009-06-15 16:00:25) from svn
    Python 2.6 ( r26 :66714, Nov 28 2008, 22:32:40)
  4. On what operating system?
    Ubuntu Linux 9.04 fully patched.
    The python-dev packages have been installed for 2.5 & 2.6 Please provide any additional information below. 8. If web2py server is shutdown and restarted then the
    warning about cron.master does not appear.
  5. Kpax cms was installed as 'cms'. At some point during
    creation of first access account to kpax the following
    message was printed on the server terminal screen:

:1: DeprecationWarning: the md5 module is deprecated; use hashlib
instead

  1. The first action after login with new user was to
    create a new folder and give it some dummy text. An
    attempt to change the access permissions for 'Everybody'
    to 'read' caused an error report:

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

minor spelling errors

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

retrieve password wording

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?

  1. it should say "reset password" or "get a new password"
  2. if the email is not found it shouls say "user not registered" or
    something similar

What do you see instead?

  1. it says "retrieve password" when it wont give you your password. It
    generates a new one regardless if it is your email or not.
  2. it says "value not in database!" What version of the product are you using? On what operating system? 1.65.7 (2009-07-28 18:50:03) under Linux Please provide any additional information below.

Original issue: http://code.google.com/p/web2py/issues/detail?id=43

session.flash does not work with GAE, but otherwise works (fixed in trunk 261)

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:

from gluon.contrib.gql import *

db = GQLDB()

session.connect(request,response,db=db)

Then the example works, but its not using GAE

Original issue: http://code.google.com/p/web2py/issues/detail?id=9

"checked" and "selected" are valid HTML attributes

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

CSV Import broken

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.

  1. in the CSV file => won't import: 'unable to parse csv file'
  2. Date in the CSV file => won't import: ValueError: invalid literal for
    int() with base 10: '11/01/2009'

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

client ip in httpserver.log

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.