web2py

Web2py ticket invalid links

Hi, I started playing around with web2py the other day for a new project. I really like the structure and the whole concept which feels like a breath of fresh air after spending a few years with PHP frameworks. The only thing (currently) that is bothering me is the ticketing system. Each time I make a misstake a page with a link to a t...

Modify CRUD Form in web2py before sending to view

I cannot seem to find a way to modify a form that has been created via: from gluon.tools import Crud crud = Crud(globals(), db) form = crud.create(db.table_name) Since I am using foreign keys in my table, the auto-generated form only allows an integer (which represents the foreign primary key), but what I want to be able to do is ent...

web2py list reference

I am trying to get the list:reference field type to work for web2py, but for some reason I am getting an error. I am trying the example on http://web2py.com/book/default/chapter/06: db.define_table('tag',Field('name'),format='%(name)s') db.define_table('product', Field('name'), Field('tags','list:reference tag')) When I try th...

What's the most productive frontend framework to use with SOLR as the backend?

Want to build a web app using SOLR as the only backend. Most of the data will be stored in SOLR via offline jobs although there is some need for CRUD. Looking at popular web frameworks today like Rails, Django, web2py etc. despite NoSQL the sweet spot for productivity still seems to be around active record implementations sitting on top...

Django, Turbo Gears, Web2Py, which is better for what?

I got a project in mind that makes it worth to finally take the plunge into programming. After reading a lot of stuff, here and elsewhere, I'm set on making Python the one I learn for now, over C# or java. What convinced me the most was actually Paul Graham's excursions on programming languages and Lisp, though Arc is in the experiment...

Why isn't web2py more readily adopted?

I have been playing with python and different web frameworks. I started with Django, but am not in so deep that I am entrenched. I really quite like python but have not found that "perfect" web solution. My qualifications of perfect would be: simple to learn/code simple to host (my webhost, Site5, isn't exactly python-friendly) wide...

Is code interpreted at every call in Web2Py ?

If so, What is the advantage ? (sure it will avoid restarting webserver). But isn't it a perfomance bottleneck? For production, is it possible to make web2py run directly from bytecode skipping interpreting stage (Caching) (except for the first request) ? ...

Disable web2py templates ?

Hi, i'm implementing a web app using web2py and jquery. I want to use the jquery templating plugin (http://github.com/jquery/jquery-tmpl) but the plugin uses the same notation for templates as web2py ( {{ code }} and collides with web2py templating. Is there any way i can disable web2py templating or escape the {{ and }} parts ? Than...

Limiting access to a static file with GAE

Hello, I have a static file that I don't want to be publicly available. Is there a way to limit access with app.yaml so that it can only be loaded by its own domain? web2py based solutions are also welcomed as I'm using it on top of GAE. Thanks! ...

Problem comparing fields with web2py in GAE

I have this model in web2py DAL: db.define_table('category', Field('name','string'), format='%(name)s' ) db.define_table('uploaded_question', Field('text','string'), ... Field('category', 'string') ) This: db.category(db.category.name == uploaded_question.category) always returns none in GAE sandbox (it w...

How to get windows user id in web2py for an intranet application?

I'm using web2py for an intranet site and need to get current login windows user id in my controller. Whether any function is available? ...

Where to store files in web2py

Hi, I have just started working on web2py. Personally, I find it easier to learn than Django. My query is that I have to load a file at application startup. Its a pickled hashtable. Where should I store this file so that the system is able to see it My code is : import cPickle as pickle def index(): """ Load the file into memo...

web2py makes no http connection, how does it communicate with browsers

I was trying to sniff HTTP packets though wireshark on my localhost, when i tried working on a web2py instance at my localhost no http connections found. While digging deeper into it i found it is not creating `any connections in the application layer. well then how does it communicate with browsers without http? (I have heard of web2py ...