[web2py] Re: web2py 2.10.3 si OUT
On Saturday, April 11, 2015 at 11:07:56 AM UTC+7, Massimo Di Pierro wrote: I cannot reproduce your problem. Did you edit gluon/tests/test_web.py? i didn't edit gluon/test/test_web.py If not, how are you running? *work* 1. run web2py python web2py.py 2. copy and paste from web2py.com into new app modules, change app name client = WebClient('*http://127.0.0.1:8000/test/*', postbacks = True) *not work* 1. run web2py with https python web2py.py *-c stifix.crt -k stifix.key --interfaces=0.0.0.0:80;0.0.0.0:443:stifix.key:stifix.crt -p 443* 2. copy and paste from web2py.com into new app modules change client into https n app name client = WebClient('*https://127.0.0.1/test/*', postbacks = True) thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
the response menu list parent seems can't have the anchor link in bs3, yet in prev version that use bs2 it can have the anchor link. e.g. response.menu = [ *(T('Master'), False, URL('master', 'index')*, [ (T('Event'), False, URL('master', 'event'), []), ]), ] how can i make the parent list have the anchor link in web2py bs3? if can not, that's fine, i'm just need to make the link as a child (part of the list). thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
I think it gmail that is replacing homer with ho... On Thursday, 9 April 2015 03:19:40 UTC-5, Niphlod wrote: Why do you even care copy/pasting around snippets? you're registering *ho...* instead of a valid email address! READ the code, UNDERSTAND what the test does, and act accordingly, BEFORE calling it a bug. On Thursday, April 9, 2015 at 8:25:36 AM UTC+2, 黄祥 wrote: 1. create new test app 2. print the value, as you can see the print syntax. 3. for client.text it return a html, i copas it to the new editor and save it as html file, and search 'Homer' using web browser, the result is it's not found. 4. checked on auth_user table, the homer user is there (can register user) 5. trying to comment #assert('Homer' in client.text), it no errors occured anymore.so imho i think it's because the login is not successful so that it can't get 'Homer'. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
I cannot reproduce your problem. Did you edit gluon/tests/test_web.py? If not, how are you running? On Thursday, 9 April 2015 08:39:49 UTC-5, 黄祥 wrote: the error is in webclient, i use https, while test using http://127.0.0.1:8000 is work. perhaps, i lack in the webclient parameters to have it support https. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
did you take AT LEAST time to inspect why it's failing ? On Thursday, April 9, 2015 at 6:37:19 AM UTC+2, 黄祥 wrote: functional test is not work in newest version, in old version work. *error* C:\web2py\applications\test\modulespython funcional_test.py No handlers could be found for logger web2py Changed session ID test Traceback (most recent call last): File funcional_test.py, line 32, in module assert('Homer' in client.text) AssertionError *code taken from the book* import sys; sys.path.append('../../../') from gluon.contrib.webclient import WebClient client = WebClient('https://127.0.0.1/test/default/', postbacks=True) client.get('index') # register data = dict(first_name='Homer', last_name='Simpson', email='ho...@web2py.com javascript:', password='test', password_two='test', _formname='register') client.post('user/register', data=data) print data # logout client.get('user/logout') # login again data = dict(email='ho...@web2py.com javascript:', password='test', _formname='login') client.post('user/login', data=data) print data # check registration and login were successful client.get('index') #print client.text #assert('Homer' in client.text) best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
1. create new test app 2. print the value, as you can see the print syntax. 3. for client.text it return a html, i copas it to the new editor and save it as html file, and search 'Homer' using web browser, the result is it's not found. 4. checked on auth_user table, the homer user is there (can register user) 5. trying to comment #assert('Homer' in client.text), it no errors occured anymore.so imho i think it's because the login is not successful so that it can't get 'Homer'. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
the error is in webclient, i use https, while test using http://127.0.0.1:8000 is work. perhaps, i lack in the webclient parameters to have it support https. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
Why do you even care copy/pasting around snippets? you're registering *ho...* instead of a valid email address! READ the code, UNDERSTAND what the test does, and act accordingly, BEFORE calling it a bug. On Thursday, April 9, 2015 at 8:25:36 AM UTC+2, 黄祥 wrote: 1. create new test app 2. print the value, as you can see the print syntax. 3. for client.text it return a html, i copas it to the new editor and save it as html file, and search 'Homer' using web browser, the result is it's not found. 4. checked on auth_user table, the homer user is there (can register user) 5. trying to comment #assert('Homer' in client.text), it no errors occured anymore.so imho i think it's because the login is not successful so that it can't get 'Homer'. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
already discussed with anthony in another thread and created the issue https://github.com/web2py/web2py/issues/904 best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
On Thursday, April 2, 2015 at 3:19:49 PM UTC-7, Massimo Di Pierro wrote: I posted a new version to address some minor issues. If you upgrade from 2.9.11 or 2.9.12 the auto update may not work and you have to delete the file: web2py/gluon/dal FWIW, I downloaded the Windows version, stopped my demo, unzipped the new Web2Py over the previous version (probably 2.9.12, but I forgot to make a note), restarted my demo, and went through all the pages that use the queries I mentioned in the 2.9.12 post URL:https://groups.google.com/d/msg/web2py/MNzcV1dsgMk/1nFl__MDrMoJ No problems seen in that simple app. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
functional test is not work in newest version, in old version work. *error* C:\web2py\applications\test\modulespython funcional_test.py No handlers could be found for logger web2py Changed session ID test Traceback (most recent call last): File funcional_test.py, line 32, in module assert('Homer' in client.text) AssertionError *code taken from the book* import sys; sys.path.append('../../../') from gluon.contrib.webclient import WebClient client = WebClient('https://127.0.0.1/test/default/', postbacks=True) client.get('index') # register data = dict(first_name='Homer', last_name='Simpson', email='ho...@web2py.com', password='test', password_two='test', _formname='register') client.post('user/register', data=data) print data # logout client.get('user/logout') # login again data = dict(email='ho...@web2py.com', password='test', _formname='login') client.post('user/login', data=data) print data # check registration and login were successful client.get('index') #print client.text #assert('Homer' in client.text) best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
on windows 7 x64 Version 2.10.3-stable+timestamp.2015.04.02.21.42.07 (Running on Rocket 1.2.6, Python 2.7.8) Traceback (most recent call last): File C:\web2py\gluon\admin.py, line 178, in app_create w2p_unpack('welcome.w2p', path) File C:\web2py\gluon\fileutils.py, line 280, in w2p_unpack tarfile.write(fgzipped.read()) File C:\Python27\lib\gzip.py, line 254, in read self._read(readsize) File C:\Python27\lib\gzip.py, line 325, in _read self._read_eof() File C:\Python27\lib\gzip.py, line 347, in _read_eof hex(self.crc))) IOError: CRC check failed 0x7e3ebce1 != 0xd66a1cf4L best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
I too am having this issue with 2.10.3 -Jim On Monday, April 6, 2015 at 12:26:28 AM UTC-5, 黄祥 wrote: format record representation is not work in grid (in the drop down select form field is work, but in the grid table just shown an id). e.g. db.define_table('test0', Field('test0'), format = '%(test0)s') db.define_table('test1', Field('test0', 'reference test0'), Field('test1'), format = '%(test1)s') def test0(): grid = SQLFORM.grid(db.test0) return locals() def test1(): grid = SQLFORM.grid(db.test1) return locals() best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
format record representation is not work in grid (in the drop down select form field is work, but in the grid table just shown an id). e.g. db.define_table('test0', Field('test0'), format = '%(test0)s') db.define_table('test1', Field('test0', 'reference test0'), Field('test1'), format = '%(test1)s') def test0(): grid = SQLFORM.grid(db.test0) return locals() def test1(): grid = SQLFORM.grid(db.test1) return locals() best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
I tried the new version. There is one problem. Sqlform.grid does not display the values of referenced fields. Only ID. How can I fix this? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
It did help to delete the folder upon upgrading via browser. But I experience something odd now, when I set-up web2py from the new source files (not via upgrade because that works) on Linux I cannot uninstall application that I have just created and also I cannot install external application using a browser I mean. My web2py folder is ownd by www-data. I can run however my old application if I copy its folder to this new web2py (2.10.3) . On Thursday, April 2, 2015 at 6:19:49 PM UTC-4, Massimo Di Pierro wrote: I posted a new version to address some minor issues. If you upgrade from 2.9.11 or 2.9.12 the auto update may not work and you have to delete the file: web2py/gluon/dal -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
auth.settings.create_user_groups and auth.settings.everybody_group_id are not work tested download new web2py (not upgrade) 1. create new application test 2. add auth.settings.create_user_groups = False and auth.settings.everybody_group_id = 2 in db.py 3. input auth group (Admin and User) 4. test input new user from appadmin 5. check on auth membership new user is not added on auth membership 6. change auth.settings.create_user_groups = True 7. test input new user from appadmin 8. check on auth membership new user is not added on auth membership best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
Seems like good thing that I waited for the upgrade! lol On Friday, April 3, 2015 at 5:57:04 PM UTC-4, 黄祥 wrote: auth.settings.create_user_groups and auth.settings.everybody_group_id are not work tested download new web2py (not upgrade) 1. create new application test 2. add auth.settings.create_user_groups = False and auth.settings.everybody_group_id = 2 in db.py 3. input auth group (Admin and User) 4. test input new user from appadmin 5. check on auth membership new user is not added on auth membership 6. change auth.settings.create_user_groups = True 7. test input new user from appadmin 8. check on auth membership new user is not added on auth membership best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
store settings in models and private/appconfig.ini. e.g. *private/appconfig.ini* [google_analytics_id] google_analytics_id = None ;google_analytics_id = 1 *models/menu.py* response.google_analytics_id = myconf.take('google_analytics_id.google_analytics_id') *result in view page source code* !-- Analytics -- script src=/visitor/static/js/analytics.min.js/script script type=text/javascript analytics.initialize({ 'Google Analytics':{trackingId:'None'} }); /script models/menu.py response.google_analytics_id = None settings in models when when view source code the analytics is not shown at all (the same app, controller, web2py version, computer) is it normal or not? best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
- set language in admin is not fully loaded the langauge file (check on languages folder there is id.py for indonesian language that in the select form field doesn't have it) - set language is not work in application e.g. *models/db.py* if 'language' in request.cookies and not (request.cookies['language'] is None): T.force(request.cookies['language'].value) else: T.force('id') *controllers/settings.py* def language(): return locals() *views/settings/language.html* {{extend 'layout.html'}} {{if hasattr(T,'get_possible_languages_info'):}} select name=language onchange=var date = new Date();cookieDate=date.setTime(date.getTime()+(100*24*60*60*1000));document.cookie='adminLanguage='+this.options[this.selectedIndex].id+'; expires='+cookieDate+'; path=/';window.location.reload() {{for langinfo in sorted([(code,info[1]) for code,info in T.get_possible_languages_info().iteritems() if code != 'default']):}} option {{=T.accepted_language==langinfo[0] and 'selected' or ''}} {{='id='+langinfo[0]}} {{=langinfo[1]}}/option {{pass}} /select {{else:}} {{pass}} best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py 2.10.3 si OUT
sorry just report the first one : - set language in admin is not fully loaded the langauge file (check on languages folder there is id.py for indonesian language that in the select form field doesn't have it) the second one is work cause of the cookies name and select form field is not same -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.