Re: [web2py] CMS idea
Totally insane! I'm astonished! This could be really useful for a project I'm working on, it's really what I'm looking for! Thank you! 2011/12/10 Massimo Di Pierro massimo.dipie...@gmail.com: I wrote this code which could be used to create a CMS. The app basically asks for the URL of any existing pubic page. It allows you to edit the text of that page in place (simply double click on it) and saves it locally as a modified copy of the original page. It gives you a unique URL for the spoofed site. Basically this can be used to take any page and turn it into a layout. The in-place edit is filtered server-side therefore we can imagine all kind of manipulations such as using a markup language, etc. It is setup as a working demo but it probably is illegal to run it on a public site as it is. Yet you can install it on your machine and play with it. There is lots of room for improvement. Can somebody help and modify it so that all html and css are also downloaded and moved into a static subfolder, instead of linked? Can somebody help and improve the popup textareas so that is looks better? Massimo -- Profile: http://www.gild.com/compagnucciangelo Register on Gild: http://www.gild.com/referral/compagnucciangelo
[web2py] user profile - adding a button
How do I add a new button in a user's profile page that redirects to another view?
RE: [web2py] Re: Progress update on Mongodb adapter now forked GIT repo
I have solved it. The current version didn't offer support for auth. But now it should have support for every option except connecting without a database. I have only tested auth, but it uses http://www.mongodb.org/display/DOCS/Connections mongodb uri as connection string. So all options should work. The new version is in the trunk my forked repo. -Oorspronkelijk bericht- Van: web2py@googlegroups.com [mailto:web2py@googlegroups.com] Namens Alan Etkin Verzonden: vrijdag 9 december 2011 15:53 Aan: web2py-users Onderwerp: [web2py] Re: Progress update on Mongodb adapter now forked GIT repo I tried to connect to a MongoHQ with the last web2py source from Google Code. It raises an exception: Traceback (most recent call last): File /home/alan/web2py-hg/gluon/restricted.py, line 204, in restricted exec ccode in environment File /home/alan/web2py-hg/applications/mongo/models/db.py, line 10, in module db = DAL('mongodb://spametki:...@staff.mongohq.com:10039/ spametki') File /home/alan/web2py-hg/gluon/dal.py, line 4283, in __init__ self._adapter = ADAPTERS[self._dbname](*args) File /home/alan/web2py-hg/gluon/dal.py, line 3770, in __init__ raise SyntaxError, Invalid URI string in DAL: %s % self.uri SyntaxError: Invalid URI string in DAL: mongodb://spametki:...@staff.mongohq.com:10039/spametki Note: i replaced the account password from the connection string with dots (anyway i could share the password for development if needed) Thanks On 8 dic, 17:23, Mark Breedveld markbr...@hotmail.com wrote: Yes, that's all -Oorspronkelijk bericht- Van: web2py@googlegroups.com [mailto:web2py@googlegroups.com] Namens Massimo Di Pierro Verzonden: donderdag 8 december 2011 16:25 Aan: web2py-users Onderwerp: [web2py] Re: Progress update on Mongodb adapter now forked GIT repo I am happy to include this. Do I just need the adapter from your dal? On Dec 8, 5:42 am, Mark Breedveld m.breedv...@solcon.nl wrote: The GIT repository below contains the Mongodb adapter.https://github.com/MarkBreedveld/web2py Currently working - Select with - startswith, endswith,contains, like, = = = != | IN NOT EQ LIMIT ORDER - Snapshot switch - safe switch - truncate - count() - drop() - create_table() TODO - update - capped collections - embedded collections - MOD, DIV, SUB, ADD, MUL, AS TESTS - with AUTH - against official SQL LIKE, STARTSWITH, ENDSWITH operators - BELONGS - writing tests - Geen virus gevonden in dit bericht. Gecontroleerd door AVG -www.avg.com Versie: 2012.0.1873 / Virusdatabase: 2102/4667 - datum van uitgifte: 12/08/11 - Geen virus gevonden in dit bericht. Gecontroleerd door AVG - www.avg.com Versie: 2012.0.1873 / Virusdatabase: 2102/4668 - datum van uitgifte: 12/08/11
[web2py] Re: Mixing/supporting CMS with Web2py
Thanks for this Bruno. Is the source code for http://labs.blouweb.com/movuca2/article/show/1/how-to-use-modules-in-web2py publicly available so we can see it in context. Peter On Dec 10, 4:55 am, Bruno Rocha rochacbr...@gmail.com wrote: On Sat, Dec 10, 2011 at 12:32 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: What's the plugin? can you send me a link? Yes, thats the link https://bitbucket.org/PhreeStyle/web2py_ckeditor/src I made some changes, my code is here: https://github.com/rochacbruno/Movuca/blob/master/modules/plugin_cked... But I am planning to submit a patch to the author. I am using the edit in place for comments Bruno Rocha [http://rochacbruno.com.br] -- Bruno Rocha [http://rochacbruno.com.br]
[web2py] Design question.
I have a function which queries a number of tables to render business cards. Depending on an organizations subscription there are five possible dictionaries to return. Since I always try to have one return statement in my functions I now have: def details(): organization=address=telecom=plan=logo=tagline=image=text=cssfile=customcss=plugin=[] organization=db().select().first() if organization.planID==1: elif organization.planID==2: elif organization.planID==3: elif organization.planID==4: else: return dict(organization=organization,address=address,telecom=telecom,plan=plan, \ logo=logo,tagline=tagline,cssfile=cssfile,customcss=customcss,plugin=plugin) I wonder what the pros and cons are of having something like: def details(): organization=address=telecom=plan=logo=tagline=image=text=cssfile=customcss=plugin=[] organization=db().select().first() if organization.planID==1: return dict(organization=organization,address=address,telecom=telecom) elif organization.planID==2: return dict(organization=organization,address=address,telecom=telecom,\ logo=logo,tagline=tagline ) elif organization.planID==3: return dict(organization=organization,address=address,telecom=telecom,\ logo=logo,tagline=tagline,cssfile=cssfile) elif organization.planID==4: return dict(organization=organization,address=address,telecom=telecom,\ logo=logo,tagline=tagline,customcss=customcss) else: return dict(organization=organization,address=address,telecom=telecom,plan=plan, \ logo=logo,tagline=tagline,cssfile=cssfile,customcss=customcss,plugin=plugin) Kind regards, Annet
[web2py] Re: web2py book 4th Edition
I'd like the full pdf version, but apparently it is not available in lulu.com yet Regards On 9 dic, 16:04, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Here is a free PDF version including the first 130 pages: web2py.com/examples/static/web2py_manual_4th.cut.pdf Massimo On Dec 9, 11:30 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: The book 4th edition (in print) is available here: http://www.lulu.com/product/paperback/web2py-book-4th-edition/18738286 I will post it on the web site asap and in PDF. The book described web2py 1.99.3 and later. Massimo
[web2py] Re: user profile - adding a button
Are you using the default view for the /default/user action? If so, in that view, you could do something like: {{if request.args(0) == 'profile':}} {{=BUTTON('Click Me', _onclick='window.location=%s;' % URL('other', 'page'))}} {{pass}} As an alternative to the button tag, you could also use a regular a tag with an href, with the link styled like a button. The new 'welcome' app (1.99.3) includes a button class for links in skeleton.css, so you could do: {{=A('Click Me', _href=URL('other', 'page'), _class='button')}} Anthony On Saturday, December 10, 2011 4:26:57 AM UTC-5, ニコノコ wrote: How do I add a new button in a user's profile page that redirects to another view?
[web2py] Geoprocessing tools and web2py
Do you guys know of any geoprocessing tools that work with web2py? I'm using i3geo, but it's php and I'd like, if possible that the tool was designed to work with web2py or even django... I've heard there was something made for django, but couldn't find it... saw something about one called mapfish, but if any of you have worked with geoprocessing tools, and have them working, I'd like to know... thanks in advanced, Cheers, Marco Tulio
[web2py] Re: Progress update on Mongodb adapter now forked GIT repo
The system requires mongodb installed. If not, web2py throws this I mean pymongo installed.
[web2py] Re: web2py book 4th Edition
Will set it up during the next couple of days. Sorry. On Dec 10, 6:37 am, Alan Etkin spame...@gmail.com wrote: I'd like the full pdf version, but apparently it is not available in lulu.com yet Regards On 9 dic, 16:04, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Here is a free PDF version including the first 130 pages: web2py.com/examples/static/web2py_manual_4th.cut.pdf Massimo On Dec 9, 11:30 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: The book 4th edition (in print) is available here: http://www.lulu.com/product/paperback/web2py-book-4th-edition/18738286 I will post it on the web site asap and in PDF. The book described web2py 1.99.3 and later. Massimo
[web2py] Re: CMS idea
Would be really nice if you could hack the jeditable in inject.js so that when clicking on an image one could edit the src and when clicking on a link one could edit the href as well as the content. Although this could also be handled via some server-side re.sub. On Dec 10, 2:12 am, Angelo Compagnucci angelo.compagnu...@gmail.com wrote: Totally insane! I'm astonished! This could be really useful for a project I'm working on, it's really what I'm looking for! Thank you! 2011/12/10 Massimo Di Pierro massimo.dipie...@gmail.com: I wrote this code which could be used to create a CMS. The app basically asks for the URL of any existing pubic page. It allows you to edit the text of that page in place (simply double click on it) and saves it locally as a modified copy of the original page. It gives you a unique URL for the spoofed site. Basically this can be used to take any page and turn it into a layout. The in-place edit is filtered server-side therefore we can imagine all kind of manipulations such as using a markup language, etc. It is setup as a working demo but it probably is illegal to run it on a public site as it is. Yet you can install it on your machine and play with it. There is lots of room for improvement. Can somebody help and modify it so that all html and css are also downloaded and moved into a static subfolder, instead of linked? Can somebody help and improve the popup textareas so that is looks better? Massimo -- Profile:http://www.gild.com/compagnucciangelo Register on Gild:http://www.gild.com/referral/compagnucciangelo
[web2py] Re: web2py book 4th Edition
I thought I posted this trying again... http://web2py.com/examples/static/web2py_manual_4th.cut.pdf The first 130 pages of the book in pdf On Dec 9, 11:30 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: The book 4th edition (in print) is available here: http://www.lulu.com/product/paperback/web2py-book-4th-edition/18738286 I will post it on the web site asap and in PDF. The book described web2py 1.99.3 and later. Massimo
[web2py] Problem with SQLFORM.smartgrid and many-to-many relations
Hi, i've defined the following relations: db.define_table('users_dictionaries', Field('user_id', db.auth_user, requires = IS_IN_DB(db,'auth_user.id', db.auth_user._format)), Field('dictionary_id', db.dictionary, requires=IS_IN_DB(db,'dictionary.id',db.dictionary._format)), ) db.define_table('users_categories', Field('user_id', db.auth_user, requires = IS_IN_DB(db,'auth_user.id', db.auth_user._format)), Field('category_id', db.category, requires=IS_IN_DB(db,'category.id',db.category._format)), ) i then created a grid=SQLFORM.smartgrid(db.auth_user) and i can see the many-to-many relations i can navigate on them but when i try to add one i get: Traceback(most recent call last): File/var/www/argomenti.in/web2py/gluon/restricted.py,line194,inrestricted execccodeinenvironment File/var/www/argomenti.in/web2py/applications/webkeywords2/controllers/admin.py http://localhost:8000/admin/default/edit/webkeywords2/controllers/admin.py,line13,inmodule File/var/www/argomenti.in/web2py/gluon/globals.py,line149,inlambda self._caller=lambdaf:f() File/var/www/argomenti.in/web2py/gluon/tools.py,line2456,inf returnaction(*a, **b) File/var/www/argomenti.in/web2py/applications/webkeywords2/controllers/admin.py http://localhost:8000/admin/default/edit/webkeywords2/controllers/admin.py,line6,inindex grid=SQLFORM.smartgrid(db.auth_user) File/var/www/argomenti.in/web2py/gluon/sqlhtml.py,line1821,insmartgrid user_signature=user_signature,**kwargs) File/var/www/argomenti.in/web2py/gluon/sqlhtml.py,line1668,ingrid value=field.represent(value,rrow) File/var/www/argomenti.in/web2py/gluon/sqlhtml.py,line1808,inlambda field.represent=lambdaid,r=None,referee=referee,rep=field.represent:A(rep(id),_href=URL(args=request.args[:args]+['view',referee,id],user_signature=user_signature)) TypeError:'NoneType'objectis notcallable The problem is rep() being None but the documentation about field.represent says: |represent| can be None or can point to a function that takes a field value and returns an alternate representation for the field value. So it can be None or a function how can i fix it? -- Vincenzo Ampolo http://vincenzo-ampolo.net http://goshawknest.wordpress.com
[web2py] Re: Problem with SQLFORM.smartgrid and many-to-many relations
Does it work if you make the following change in line 1808 of sqlhtml.py: A(callable(rep) and rep(id) or id, _href=... Anthony On Saturday, December 10, 2011 11:29:41 AM UTC-5, Vincenzo Ampolo wrote: Hi, i've defined the following relations: db.define_table('users_dictionaries', Field('user_id', db.auth_user, requires = IS_IN_DB(db,'auth_user.id', db.auth_user._format)), Field('dictionary_id', db.dictionary, requires=IS_IN_DB(db,'dictionary.id',db.dictionary._format)), ) db.define_table('users_categories', Field('user_id', db.auth_user, requires = IS_IN_DB(db,'auth_user.id', db.auth_user._format)), Field('category_id', db.category, requires=IS_IN_DB(db,'category.id',db.category._format)), ) i then created a grid=SQLFORM.smartgrid(db.auth_user) and i can see the many-to-many relations i can navigate on them but when i try to add one i get: Traceback (most recent call last): File /var/www/argomenti.in/web2py/gluon/restricted.py, line 194, in restricted exec ccode in environment File /var/www/argomenti.in/web2py/applications/webkeywords2/controllers/admin.py http://localhost:8000/admin/default/edit/webkeywords2/controllers/admin.py, line 13, in module File /var/www/argomenti.in/web2py/gluon/globals.py, line 149, in lambda self._caller = lambda f: f() File /var/www/argomenti.in/web2py/gluon/tools.py, line 2456, in f return action(*a, **b) File /var/www/argomenti.in/web2py/applications/webkeywords2/controllers/admin.py http://localhost:8000/admin/default/edit/webkeywords2/controllers/admin.py, line 6, in index grid = SQLFORM.smartgrid(db.auth_user) File /var/www/argomenti.in/web2py/gluon/sqlhtml.py, line 1821, in smartgrid user_signature=user_signature,**kwargs) File /var/www/argomenti.in/web2py/gluon/sqlhtml.py, line 1668, in grid value=field.represent(value,rrow) File /var/www/argomenti.in/web2py/gluon/sqlhtml.py, line 1808, in lambda field.represent = lambda id,r=None,referee=referee,rep=field.represent: A(rep(id),_href=URL(args=request.args[:args]+['view',referee,id], user_signature=user_signature))TypeError: 'NoneType' object is not callable The problem is rep() being None but the documentation about field.represent says: represent can be None or can poin t to a function that takes a field value and returns an alternate representation for the field value. So it can be None or a function how can i fix it? -- Vincenzo Ampolohttp://vincenzo-ampolo.nethttp://goshawknest.wordpress.com
[web2py] Re: CMS idea
notice that every edited page gets its own new url... with minor changes one could make it edit its own pages and display a list of pages edited by the same user: Example of workflow: 1. point it to a page you like 2. clone it 3. edit it 4. clone the clone 5. edit it and add links to the other cloned page 6. goto 4 ... the editor could be replaced with a minimalist version of ckeditor so one gets some clientside html validation. one could add macros like $comments, $contactform, translated serverside. On Dec 10, 10:07 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Would be really nice if you could hack the jeditable in inject.js so that when clicking on an image one could edit the src and when clicking on a link one could edit the href as well as the content. Although this could also be handled via some server-side re.sub. On Dec 10, 2:12 am, Angelo Compagnucci angelo.compagnu...@gmail.com wrote: Totally insane! I'm astonished! This could be really useful for a project I'm working on, it's really what I'm looking for! Thank you! 2011/12/10 Massimo Di Pierro massimo.dipie...@gmail.com: I wrote this code which could be used to create a CMS. The app basically asks for the URL of any existing pubic page. It allows you to edit the text of that page in place (simply double click on it) and saves it locally as a modified copy of the original page. It gives you a unique URL for the spoofed site. Basically this can be used to take any page and turn it into a layout. The in-place edit is filtered server-side therefore we can imagine all kind of manipulations such as using a markup language, etc. It is setup as a working demo but it probably is illegal to run it on a public site as it is. Yet you can install it on your machine and play with it. There is lots of room for improvement. Can somebody help and modify it so that all html and css are also downloaded and moved into a static subfolder, instead of linked? Can somebody help and improve the popup textareas so that is looks better? Massimo -- Profile:http://www.gild.com/compagnucciangelo Register on Gild:http://www.gild.com/referral/compagnucciangelo
Re: [web2py] Re: web2py book 4th Edition
Massimo, I'll hack on this, but first I prefer to give a finishing touch to mobile admin, there are still som rough edges! 2011/12/10 Massimo Di Pierro massimo.dipie...@gmail.com: I thought I posted this trying again... http://web2py.com/examples/static/web2py_manual_4th.cut.pdf The first 130 pages of the book in pdf On Dec 9, 11:30 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: The book 4th edition (in print) is available here: http://www.lulu.com/product/paperback/web2py-book-4th-edition/18738286 I will post it on the web site asap and in PDF. The book described web2py 1.99.3 and later. Massimo -- Profile: http://www.gild.com/compagnucciangelo Register on Gild: http://www.gild.com/referral/compagnucciangelo
Re: [web2py] Re: Problem with SQLFORM.smartgrid and many-to-many relations
On 12/10/2011 05:44 PM, Anthony wrote: Does it work if you make the following change in line 1808 of sqlhtml.py: A(callable(rep) and rep(id) or id, _href=... Anthony Thanks! it fixed the problem but i've found another error which could be related: the id in the table is not linked to the relative instance like in the picture: http://www.diigo.com/item/image/1h8fs/80rc?size=o -- Vincenzo Ampolo http://vincenzo-ampolo.net http://goshawknest.wordpress.com
Re: [web2py] Re: web2py 1.99.3 is OUT
LightDot escribió: I'm browsing trough the new web page a bit and I can report a glitch: div class sixteen columns announce gets thrown to the right, so I get a horizontal scroll bar even on a 1920px wide screen. Tested on linux, Firefox 8 and Opera 11.60 (screenshot attached). Chromium 15 shows this div centered and no horizontal scroll bars, I guess displaying as intended. I can confirm this.
[web2py] Re: Getting table a to use as default string from field in table b
Assuming you have the record id of the current user from the 'user_table' table, maybe something like: Field('x', default=db.user_table[id of current user].default_x) You cannot just refer to the field (which doesn't identify the specific user) -- you have to select the specific value for this user. Anthony On Saturday, December 10, 2011 4:34:33 PM UTC-5, tsvim wrote: Hi all, I have 1 table with a lot of fields. Some of them, I want to have a default value dependent on the user. In the user table I have a field called default_x. I tried setting the default for field x in the data table to 'user_table.default_x'. Which did not work. Any ideas how to achieve this functionality?
Re: [web2py] user profile - adding a button
Nik Go escribió: How do I add a new button in a user's profile page that redirects to another view? (assuming that you're using the default 'user' function in 'default' controller) ...you can edit the view /default/user.html
[web2py] Re: web2py 1.99.3 is OUT
We could not call it 1.100 because it would break the old automatic upgrade mechanism (1 comes before 9, yikes). Why not make the upgrade from old version a two-step process? Or is this too high a price to pay for being absolutely clear that the API not been broken? I know bumping major versions is all the rage, but isn't backward compatibility one of the strongest selling points of web2py?
[web2py] Re: web2py 1.99.3 is OUT
Massimo Di Pierro massimo.dipie...@gmail.com wrote: The new web site layout needs work but we put it out there hoping for more feedback. The announcement 2011 BOSSIE AWARD FOR OPEN SOURCE DEVELOPMENT SOFTWARE is cut off and too far on the right in Firefox 9.0 Beta on Mac OS X 10.6. Haven't found a good solution, but if you add a br clear=all / before the announce DIV, the text is centered again.
[web2py] How to remove 'Registration needs verification'?
I set the: auth.settings.registration_requires_verification = False I tested several hours but now it pops up: 'Registration needs verification' How to remove it? Thanks, --Constantine
[web2py] Re: read once definitions - development vs. production
Hi Vineet, Thank you! Absolutely - you understood my question properly. It seems that solution is very simple, I am so overwhelmed with this porting that sometimes I oversee the simplest solutions ;) So if I put it under site-packages like this: site-packages/models site-packages/definitions I can import them from everywhere from site-packages.models import models from site-packages.models import definitions and in /models I have: class MyClass(db_google.Model) name = dg_google.string(...) def profile(self, id) some code Then I can the model like this: myclass = MYClass.profile(id) name = myclass.name Is that right?
[web2py] book: why web2py
One of the reasons to use web2py mentioned in the book is the following: web2py has a small footprint and is very fast. It uses the Rocket WSGI web server developed By Timothy Farrell. It is 30% faster than Apache with mod_proxy. I don't really understand the second sentence. Should it say Apache with mod_wsgi?
[web2py] Re: web2py 1.99.3 is OUT
Can you emailed me the fixed layout.html? On Dec 10, 6:02 pm, Stefan Scholl ste...@no-spoon.de wrote: Massimo Di Pierro massimo.dipie...@gmail.com wrote: The new web site layout needs work but we put it out there hoping for more feedback. The announcement 2011 BOSSIE AWARD FOR OPEN SOURCE DEVELOPMENT SOFTWARE is cut off and too far on the right in Firefox 9.0 Beta on Mac OS X 10.6. Haven't found a good solution, but if you add a br clear=all / before the announce DIV, the text is centered again.
[web2py] Re: book: why web2py
Good catch. That sentence is there since the second edition. Yes, I meant mod_wsgi but this needs to be tested again since there are newer versions of mod_wsgi. On Dec 10, 6:59 pm, rif feric...@gmail.com wrote: One of the reasons to use web2py mentioned in the book is the following: web2py has a small footprint and is very fast. It uses the Rocket WSGI web server developed By Timothy Farrell. It is 30% faster than Apache with mod_proxy. I don't really understand the second sentence. Should it say Apache with mod_wsgi?
[web2py] Re: read once definitions - development vs. production
You should be able to do the same from the application's /modules folder. Use site-packages if it's a module that needs to be accessed by multiple applications (or possibly by other Python programs). Anthony On Saturday, December 10, 2011 7:09:32 PM UTC-5, Constantine Vasil wrote: Hi Vineet, Thank you! Absolutely - you understood my question properly. It seems that solution is very simple, I am so overwhelmed with this porting that sometimes I oversee the simplest solutions ;) So if I put it under site-packages like this: site-packages/models site-packages/definitions I can import them from everywhere from site-packages.models import models from site-packages.models import definitions and in /models I have: class MyClass(db_google.Model) name = dg_google.string(...) def profile(self, id) some code Then I can the model like this: myclass = MYClass.profile(id) name = myclass.name Is that right?
[web2py] server settings.
Hallo guys, I'm a newbie in Web2py, but I like it a lot. I didn't want to post for a such stupid question but I'm stuck and don't know how to resolve it. I moved an application from rails to Web2py. basically a dynamic photo gallery, and everything is working fine on my desktop. But on mobile phones, somehow, I can't see heavy images (200 Kb), but light images only! even changing the jquery lightbox with another, I can load maximum 1/4 of heavy images. Is it possible that Web2py server is blocking it somehow? The same jquery on rails works well, please, I don't want to come back to raiiilss. No errors in console. Nothing. If I change pictures with lighter ones, it works. I really don't know where to look. Mac, local host shared.on 0.0.0.0:8000/application Thanks for Your time. :/
[web2py] Re: read once definitions - development vs. production
I just put my classes in site-packages/models.py and the 'from models import *' made the classes available globally. So if I put them in /modules/models.py it would be the same?
[web2py] How to change the message 'value already in database or empty' in Register?
How to change the message 'value already in database or empty' in Register? Thanks, Regards, --Constantine
[web2py] Re: server settings.
What's your mobile browser? How big are the images? It is possible there is a problem with chunked encoding with rocket. Other users have mentioned this and we are working on it. Meanwhile, can you try using apache or another web server? (look into web2py/anyserver.py) On Dec 10, 8:12 pm, Mchurch mchurc...@gmail.com wrote: Hallo guys, I'm a newbie in Web2py, but I like it a lot. I didn't want to post for a such stupid question but I'm stuck and don't know how to resolve it. I moved an application from rails to Web2py. basically a dynamic photo gallery, and everything is working fine on my desktop. But on mobile phones, somehow, I can't see heavy images (200 Kb), but light images only! even changing the jquery lightbox with another, I can load maximum 1/4 of heavy images. Is it possible that Web2py server is blocking it somehow? The same jquery on rails works well, please, I don't want to come back to raiiilss. No errors in console. Nothing. If I change pictures with lighter ones, it works. I really don't know where to look. Mac, local host shared.on 0.0.0.0:8000/application Thanks for Your time. :/
[web2py] How to show user_id encrypted in the browser address bar and decrypt in the app?
I am getting user_id = str(auth.user.id), form a link to be clicked later. When clicked on to the browser bar looks like like /user?user_id=9 That is insecure. How to encrypt it to look like /user?user_id=10iksmwu0 (something like that) and decrypt later when extracting from the request_vars?