[web2py] Re: web2py launcher for Debian package

2011-01-26 Thread José L .
This message has disappeared from the web2py google groups site . I don't know why. So, I'm bumping it On Wednesday, January 26, 2011 8:33:37 PM UTC+1, José L. wrote: > > Hello, in order to do the packaging of web2py, I've done these things: > - moved gluon to be a standard library of the syste

[web2py] We should have this plugin...

2011-01-26 Thread Jason Brower
How many plugin... It would, every once in a while, at triggers etc.. tweet some session variable. The reason I say this is I think it would be cool to see tweets of how many downloads a day we get from web2py.com and how many where the plugin wiki. Etc... It could be useful for other things

[web2py] Overwriting the default "register" action

2011-01-26 Thread David J.
Currently I have a session variable called site_id; Its a read only variable we set when the user comes to one of the sites; ON the default register pages; I am trying to store this variable when the user registers; I am trying to figure out how to "extend" the default "register" command; B

[web2py] Re: migrating auth_user table to another app

2011-01-26 Thread mart
thanks for the input! I'll give your suggestions a try :) On Jan 26, 3:58 pm, Niphlod wrote: > as long as you don't mind have the same auth.settings.hmac_key in the > new application nothing will break, as far as i know, copying the data > from auth_* tables to your new (fresh, without a single i

Re: [web2py] Re: Getting the id of submitted form...

2011-01-26 Thread Jason Brower
Yeah, I fix it. Just moved things around. Thanks! BR, Jason On 01/26/2011 11:00 PM, Niphlod wrote: in other techical words, you can't know in advance what id will have the "line" you are inserting toyou know that only after actually inserting the row into the database On 25 Gen, 15:48, De

Re: [web2py] Re: Fresh Wizard install and plugin wiki not working...

2011-01-26 Thread Jason Brower
Thanks for the heads up. I had to create the group and add me to that group. BR, Jason Brower On 01/26/2011 09:24 PM, Massimo Di Pierro wrote: There is a known bug. If you try generate dummy database entries for a field that must be unique, you may get accidental duplicates that result in an e

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Magnitus
As a programmer, I found Web2py more appealing out of the box. I did a fair chunk of the Django tutorial, but they started on a bad note by showing me how to add an admin interface and considering it to be some hot stuff (for crying out loud, that's a pretty high level feature and one that you can

Re: [web2py] Re: Adding fields to the default register form;

2011-01-26 Thread Bruno Rocha
Thinking a bit more, taking the Vinicius comment and some examples of another O.O frameworks. I was wondering about... #1 form = auth() print form # return the HTML with tables #2 auth.settings.formstyle = 'divs' form = auth() print form # return the HTML with divs #3 form = auth() print form

[web2py] Change in URL args handling

2011-01-26 Thread Jonathan Lundell
This applies to both the old and new URL rewrite paths, regardless of whether there's any rewriting going on. Previously, a trailing slash after args would cause an extra arg to be added to the list with a value of '' (empty string). In the old logic, an embedded empty arg was illegal. That is

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Massimo Di Pierro
I am trying to get to the bottom of it. My server does not show the problem but I hope to be able to reproduce it so I can debug it. Massimo On Jan 26, 9:47 pm, VP wrote: > >> One thing that worries me is the issue of scalability, for example, > >> this project will work with django or web2py, b

[web2py] django admin like app/plugin in web2py

2011-01-26 Thread William
Hi all, I just got started in web2py and like it so far. I noticed that it has a admin and an appadmin for each app. but i think appadmin is not for the users, right? is there an app or plugin like django admin or django grappelli? Thanks, Bill

Re: [web2py] Re: Application with no session

2011-01-26 Thread Jonathan Lundell
On Jan 26, 2011, at 10:53 AM, José L. wrote: > Forget my previous mail, I've checked that adding > session.forget() to the default controller makes the needed magic. > The best place for a global session.forget() call is in a file in the models directory. It doesn't have to do anything with mode

Re: [web2py] Re: Why web2py? and not django?

2011-01-26 Thread Jonathan Lundell
On Jan 26, 2011, at 9:45 AM, villas wrote: > > Massimo, > >> "Even if there are multiple web servers, there must be one, and only >> one, database server. " > > This does appear to negate one of Web2py's best features, concurrent > access to multiple DB servers. How about changing the book to r

[web2py] impersonate any user

2011-01-26 Thread kuokon
Hi, Is there way to specific a permission that allow admin/root to impersonate any user, instead of just a single user id? eg. has_permission('impersonate', 'auth_user') # any user instead of has_permission('impersonate', 'auth_user', u

Re: [web2py] web2py.com down?

2011-01-26 Thread pbreit
OK now.

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread VP
>> One thing that worries me is the issue of scalability, for example, >> this project will work with django or web2py, but no large deployments >> web2py to bringing information on how to behave in environments where >> there are 50 Requests per second with the problems associated with >> using a

Re: [web2py] web2py.com down?

2011-01-26 Thread Bruno Rocha
2011/1/27 pbreit > web2py.com seems down for me at the moment. 7:24pm california time. It is up and running well here in Brazil (1:37 AM) Simple check is: http://www.downforeveryoneorjustme.com/web2py.com -- Bruno Rocha http://about.me/rochac

[web2py] web2py.com down?

2011-01-26 Thread pbreit
web2py.com seems down for me at the moment. 7:24pm california time.

Re: [web2py] Re: Adding fields to the default register form;

2011-01-26 Thread Bruno Rocha
In my view, 'formstyle' is a parameter of SQLFORM() helper, I dont think it has anything wrong. In the case of auth, we are not adjusting properties of the form, we are just storing the properties somewhere, that place is auth.settings dictionary. This the same way we do with plugins when using P

[web2py] [OFF-TOPIC] PDF Reports with Pisa

2011-01-26 Thread Lucas D'Avila
Hi! I added support for Pisa [1] on appreport plugin [2], appreport now has two engines to generate PDF documents: the pyfpdf and Pisa. Simply import the appreport plugin in web2py and use, no need to install other dependent packages. -- Download and documentation, visit the wiki [3], i also ad

[web2py] Re: reload models

2011-01-26 Thread pbreit
I may have figured it out. The problem may have been related to something throwing an error so it was putting an unexpected value in the computed field. Seems to be working ok now.

[web2py] Re: reload models

2011-01-26 Thread pbreit
I should note that I am using "compute" which calls a function via lambda. def get_expire_date(r): return (r['days'] + 1) * (r['duration']) Field('expire_date', compute=lambda r: get_expire_date(r)), On Wednesday, January 26, 2011 6:20:05 PM UTC-8, pbreit wrote: > > I can't seem to

Re: [web2py] Re: Adding fields to the default register form;

2011-01-26 Thread Vinicius Assef
I see, but it isn't intuitive, right? Why must I adjust properties of something (the form itself) doesn't exist yet? -- Vinicius Assef. On Wed, Jan 26, 2011 at 3:03 PM, Anthony wrote: > On Wednesday, January 26, 2011 10:36:06 AM UTC-5, viniciusban wrote: >> >> Just a doubt: why not? >> >> Is t

[web2py] reload models

2011-01-26 Thread pbreit
I can't seem to get a change I made to a function in a model to reload. One problem is that stopping & starting the server on my Mac does not work. But even when I quit web2py and re-open it, the edits I made to the function in a model are not getting used. I'm assuming it's cached somewhere but

[web2py] Re: can web2py support RESTful api calls? if so any pointers on how to build one?I

2011-01-26 Thread Niphlod
it's completely possibile and URL designing in web2py is easy adhere to RESTfulness is a piece of cake. It is a challenge to understand what do you imply saying "RESTful" and to be honest there are strict or lazy ways to stick to the "REST bible"... I'm not an Iphone dev but, admitted that yo

Re: [web2py] Why web2py? and not django?

2011-01-26 Thread Alfonso de la Guarda
As I said we have already developed applications in both framework and both have great benefits, personally despite being a Python for 10 years, I prefer web2py, yet I feel that there are (in market) a particular tendency to "deify" django and this thread is me providing relevant arguments and info

[web2py] Re: can web2py support RESTful api calls? if so any pointers on how to build one?I

2011-01-26 Thread pbreit
It should be possible. After all, REST is usually just making GETs and POSTs to URLs/URIs. Web2py has some features to help out. Take a look at the chapter on Services: http://web2py.com/book/default/chapter/09 RESTful systems are typically expecting XML or JSON data formats which are both supp

[web2py] Re: Python 2.7.1 next steps to install on Centos with Cpanel installed

2011-01-26 Thread pbreit
My sincere apologies...for CentOS you should look at the Fedora script: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-fedora.sh Does your host simply not have documentation? Do you see anywhere in your Cpanel any information about setting up a Python app? Does your Cpanel sho

Re: [web2py] Re: Why web2py? and not django?

2011-01-26 Thread Thadeus Burgess
That is just one of the very small reasons out of the entire haystack the advantages of an ORM are much too numerous to even begin to account I do not think circular references are a bad thing... it is a pointer after all... one thing I miss from C programming is the ability to control poi

[web2py] Re: Python 2.7.1 next steps to install on Centos with Cpanel installed

2011-01-26 Thread stargate
I wish it did On Jan 24, 11:26 pm, pbreit wrote: > Does your host provide instructions on how to run Python or Django apps?

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread VP
I remember reading about self referencing and the mess of organizing the relationships associated with it. If this is a problem then it can simply be resolved by running a topological sort of the dependencies. As long as, there is no circular referencing, it'll be a directed acyclic graph, and t

[web2py] Re: driver string regex issues

2011-01-26 Thread Loren McGinnis
Actually, I'm going to go back on what I said. using decode_credentials=True does not change the behavior of some of the adapters. The MSSQL adapter, for example, did not extract the user or password from the url by calling credential_decoder: user = m.group('user') ... password = m.group('passw

[web2py] The web of connected p2p web2py apps ? (or a new kind of social network)

2011-01-26 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm looking for which will be the app that I will do to learn web2py. I like of web2py the self-contained minimalistic nature of it, and I imagine a web made of web2py p2p sites that share content, but give the people the ability to create app

[web2py] Re: New User - a few simple questions...

2011-01-26 Thread Anthony
On Wednesday, January 26, 2011 3:59:01 PM UTC-5, ga...@rtplanb.com wrote: > > Thank you both for your replies. No problem. We're glad to have you here. > One more quick question.. > The scaffolding app has a nice menu bar below the logo. Showing 3 > menus. 2 of which 'drop down'. How d

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Massimo Di Pierro
DAL supports self references. Circular references that are not self references are not supported because they are a bad idea. Massimo

Re: [web2py] Re: encoding problem

2011-01-26 Thread Marin Pranjic
Problem solved! Browser issue. On Wed, Jan 26, 2011 at 10:26 PM, Marin Pranjic wrote: > I think urlencoding is the problem. > > If I run > http://example.com/cont/func?var=š > > it encodes into > > http://example.com/cont/func?var=%9A > > if I define con

[web2py] Re: SQLFORM and read-only references

2011-01-26 Thread Pawel Jasinski
Hi, > Are you sure you want the form readonly? Yes > What if you remove readonly? The 'None' changes into drop down with ids or whatever is in the format argument of the field. > If you want readonly you do not need accepts Good point, changed. It does not help with the main problem. I also hav

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread VP
>>. there is a real difference >> in maintaining 70+ models in web2py vs SQLAlchemy... especially when these >> models need to be shared between external scripts. Is this because DAL has not support for circular dependencies and SQLAlchemy does? But seriously, I think an application with 70+ mode

Re: [web2py] Re: New User - a few simple questions...

2011-01-26 Thread Bruno Rocha
The right tool for favicon http://tools.dynamicdrive.com/favicon/ -- Bruno Rocha http://about.me/rochacbruno/bio

[web2py] URL formation in CRUD

2011-01-26 Thread Running Clam
Hi, Having used web2py for a while using hand-written controllers and views, I'm trying to see how far I can get with CRUD alone, but I'm seeing some odd behaviour. If I create a controller called crm.py, and define "data" as a function as described in the book, when I call the function, [app]/cr

Re: [web2py] Relationship Tables in GAE

2011-01-26 Thread howesc
I use both references and datetimes successfully on GAE. the error message got truncated so i can't see what the exception is? If you are using latest web2py (1.91.6), please "upgrade" to trunk. it has some GAE fixes. cfh

[web2py] can web2py support RESTful api calls? if so any pointers on how to build one?I

2011-01-26 Thread superavit
I posted this in stackoverflow and was advised to ask here. Probably a good call!! I want to configure a simple webapplication to support an iphone app to connect with it in RESTFUL ways. Initially have a user login session enabled from the iphone to the web app. I'd like the iphone app to send a

[web2py] Re: New User - a few simple questions...

2011-01-26 Thread g...@rtplanb.com
Thank you both for your replies. I have got the favicon bit working. I read a bit online and exported the inkscape .svg to .png using export bitmap, rather than Save As png. It now looks perfect. > I'm not sure moving files via admin is possible -- you're probably better > off just doing that via

Re: [web2py] Re: encoding problem

2011-01-26 Thread Marin Pranjic
I think urlencoding is the problem. If I run http://example.com/cont/func?var=š it encodes into http://example.com/cont/func?var=%9A if I define controller-function def func: return request.vars.var I get the symbol � as output However - return 'š

[web2py] Re: Deploying Web2py on GAE

2011-01-26 Thread howesc
i'm way too old skool and just use the CLI to app engine. i thought i saw something on the group about some things not working for admin on some platforms (windows perhaps?) cfh

Re: [web2py] Re: Why web2py? and not django?

2011-01-26 Thread Thadeus Burgess
You could definitely use Jinja2 if you so desired, but honestly I do not see any reason why you would, you lose the ability to byte compile your views. (well technically, you would end up having to write your own middleware that would compile the jinja2 templates into bytecode) but then you get

Re: [web2py] Re: Can I share web2py authorization db across multiple apps

2011-01-26 Thread Thadeus Burgess
Also, make sure the "sessions" folder is either A) Symlinked to each other application or B) Store sessions in database or in a cookie. -- Thadeus On Wed, Jan 26, 2011 at 9:38 AM, ron_m wrote: > Also check this setting originally in db.py of the scaffolding app > > auth.settings.hmac_key = '

[web2py] Re: Getting the id of submitted form...

2011-01-26 Thread Niphlod
in other techical words, you can't know in advance what id will have the "line" you are inserting toyou know that only after actually inserting the row into the database On 25 Gen, 15:48, DenesL wrote: > Hi Jason, > > onvalidation runs before the record is inserted so form.vars.id does > not

[web2py] Re: migrating auth_user table to another app

2011-01-26 Thread Niphlod
as long as you don't mind have the same auth.settings.hmac_key in the new application nothing will break, as far as i know, copying the data from auth_* tables to your new (fresh, without a single insert done) app. @villas, VP csv import/export is totally usable for me villas method also

[web2py] Re: encoding problem

2011-01-26 Thread Niphlod
did you look into http://code.google.com/p/jquery-json/issues/detail?id=43 ? json.loads in web2py fits well with unicode maybe it's jquery- json and browser implementation that screws something up. On 26 Gen, 20:51, Marin Pranjic wrote: > It's not web2py related, but I hope someone can help

[web2py] web2py and uploadify

2011-01-26 Thread Niphlod
Hello, I'm working on integrating uploadify with web2py Unfortunately uploadify doesn't use cookies at all when posting the files so if I want to "assign" an user to an uploaded file I need to secure the "receiving" function somehow. Uploadify can definitely add a parameter on every POST it doe

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Massimo Di Pierro
Yes just import it, call it in the action and return the string they generate. On Jan 26, 2:05 pm, Albert Abril wrote: > Just for embroil more... > ...is possible in some way to use django template system, or jinja2 in > web2py? > > > > > > > > On Wed, Jan 26, 2011 at 8:54 PM, cjrh wrote: > > On

[web2py] Re: Login form (remember for 30 days not working)

2011-01-26 Thread Massimo Di Pierro
Usually the problem is the admin/cron job that cleans up the sessions. On Jan 26, 2:04 pm, "Arun K.Rajeevan" wrote: > My client says even if he set remember me for 30 days he automatically > get logged-out after a few hours. > > Is there any special settings to enable this feature? > > client say

Re: [web2py] Re: T-Shirts web2py

2011-01-26 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, El 26/01/11 09:24, Massimo Di Pierro escribió: > How about > > "get it done!" or "build the web!" > > "get the things done" seems too long. I would buy some T-shirts. :-) > I like "build the web" or may be "Get the web done" :-), just to comb

Re: [web2py] Re: Why web2py? and not django?

2011-01-26 Thread Albert Abril
Just for embroil more... ...is possible in some way to use django template system, or jinja2 in web2py? On Wed, Jan 26, 2011 at 8:54 PM, cjrh wrote: > On Jan 26, 8:19 pm, VP wrote: > > To be fair, the most popular option right now is SQLAlchemy, an ORM. > > DAL appears to be a minority approac

[web2py] Login form (remember for 30 days not working)

2011-01-26 Thread Arun K.Rajeevan
My client says even if he set remember me for 30 days he automatically get logged-out after a few hours. Is there any special settings to enable this feature? client says -

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread cjrh
On Jan 26, 8:19 pm, VP wrote: > To be fair, the most popular option right now is SQLAlchemy, an ORM. > DAL appears to be a minority approach.  So, ORM must be good at > something right? No. The number of people that support a thing has no bearing on that thing's correctness. None whatsoever.

[web2py] encoding problem

2011-01-26 Thread Marin Pranjic
It's not web2py related, but I hope someone can help me. I'm sending data via ajax, which is urlencoded JSON object (I used jquery-json). Then, I use json.loads(variable) to load the object. Everything works good for normal ASCII characters, but if I send non- ascii chars, i get the following: U

[web2py] Re: Common value for all application pages

2011-01-26 Thread walter
I want to create a unified view file for multiple application. I plan to use it with the different design templates. On 26 янв, 21:06, Anthony wrote: > On Wednesday, January 26, 2011 12:56:56 PM UTC-5, rochacbruno wrote: > > Also, Walter, I don't know what your variable is, but if it's something

[web2py] Re: GAE Flow doesn't seems work.

2011-01-26 Thread Arun K.Rajeevan
It's just that I didn't put entire code block here. This statement resides inside a for block as for i,item in enumerate(data.keys()): so clearly i and item are available in the scope (this code works well with rocket server and local dev_appserver.py and problem is only when I upload it to G

[web2py] Re: TypeError: is not JSON serializable

2011-01-26 Thread Massimo Di Pierro
Can you please email me your app? On Jan 26, 10:05 am, web2py noob wrote: > I'm trying to list the db.table's content using > plugin_wiki.widget('jqgrid',table='table') but despite I put in > controller, view o in a wiki_page (with respective sintaxis for each) > I always get "TypeError:  is not

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Massimo Di Pierro
I do not think the ORMs are better at something functionally. They are syntactic sugar. It boils down to whether a Table is a class (ORM) or an instance (DAL) and a row is an instance of the table class (ORM) or an instance of a record class (DAL). If a row is an instance of a table class, then y

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Anthony
On Wednesday, January 26, 2011 2:29:59 PM UTC-5, Massimo Di Pierro wrote: > > Where is this sentence? It is clearly wrong. Chapter 11, opening section, right before the server cluster diagram: http://web2py.com/book/default/chapter/11?search=multiple+web+servers

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Anthony
On Wednesday, January 26, 2011 2:19:34 PM UTC-5, villas wrote: > > Hi Anthony, > > As you say, the context does soften that sentence. > > However, the existing wording is not only wrong, it also gave someone > on this list some unnecessary cause for concern. Oh yes, I agree -- that sentence

[web2py] web2py launcher for Debian package

2011-01-26 Thread José L .
Hello, in order to do the packaging of web2py, I've done these things: - moved gluon to be a standard library of the system, integrated in the PYTHONPATH - moved : applications deposit logs site-packages VERSION web2py.py welcome.w2p to /usr/share/web2py -add created a web2py launcher at /us

[web2py] Re: Rocket wsgi for Intranet production app

2011-01-26 Thread greenpoise
that is something I am going to need at the same time, I think I can manage that through the server itself. thanks On Jan 26, 11:19 am, Massimo Di Pierro wrote: > Rocket is very robust and fast. The only reason to use apache instead > in production are(were) Apache has many more configuratio

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Massimo Di Pierro
Where is this sentence? It is clearly wrong. On Jan 26, 9:45 am, villas wrote: > Massimo, > > > "Even if there are multiple web servers, there must be one, and only > > one, database server. " > > This does appear to negate one of Web2py's best features, concurrent > access to multiple DB servers

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Massimo Di Pierro
Just to clarify. An ORM is not a object database (like ZODB). Django does not have an object database. ORM and DAL are simply to ways to access RDBMs. On Jan 26, 12:07 pm, blackthorne wrote: > chmpion of what? > > object dabatases are the champions storing... objects > relational dbms are the ch

[web2py] Re: Fresh Wizard install and plugin wiki not working...

2011-01-26 Thread Massimo Di Pierro
There is a known bug. If you try generate dummy database entries for a field that must be unique, you may get accidental duplicates that result in an error. Massimo On Jan 26, 12:42 pm, JayShaffstall wrote: > I found this when I allowed the wizard to generate dummy database > entries.  Disallo

[web2py] Re: SQLFORM and read-only references

2011-01-26 Thread Massimo Di Pierro
Are you sure you want the form readonly? What id you remove readonly? If you want readonly you do not need accepts On Jan 26, 12:40 pm, Pawel Jasinski wrote: > hi, > > hi, > i had the same idea in a mean time. Same effect :-( > --pawel > > On Jan 26, 6:25 pm, Massimo Di Pierro > wrote: > > > > >

[web2py] Re: Start up error

2011-01-26 Thread Massimo Di Pierro
Something is very wrong in your installation. there is supposed to be a lot of stuff under applications. Please delete web2py, download web2py_win.zip and try unzip it again. Massimo On Jan 26, 12:03 pm, jldistefano wrote: > The folder "applications" was empty so I create the folder "admin" and

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread villas
Hi Anthony, As you say, the context does soften that sentence. However, the existing wording is not only wrong, it also gave someone on this list some unnecessary cause for concern. Regards, D On Jan 26, 5:29 pm, Anthony wrote: > On Wednesday, January 26, 2011 10:45:45 AM UTC-5, villas wrote

[web2py] Re: Rocket wsgi for Intranet production app

2011-01-26 Thread Massimo Di Pierro
Rocket is very robust and fast. The only reason to use apache instead in production are(were) Apache has many more configuration options, in particular security options such as allow/deny clients and individual urls. On Jan 26, 11:32 am, greenpoise wrote: > I read on the Web2py Deployment recipes

[web2py] Re: TypeError: is not JSON serializable

2011-01-26 Thread web2py noob
ping? On 26 ene, 13:05, web2py noob wrote: > I'm trying to list the db.table's content using > plugin_wiki.widget('jqgrid',table='table') but despite I put in > controller, view o in a wiki_page (with respective sintaxis for each) > I always get "TypeError:  is not JSON serializable". My db model

Re: [web2py] Re: Using pyGravatar to get user avatar for profile pages

2011-01-26 Thread Bruno Rocha
I posted the issue to pyGravatar and it has been accepted, https://bitbucket.org/gridaphobe/pygravatar/src/bd0f796264e6/gravatar.py Now, I think it needs to do the same for urllib on GAE? Bruno Rocha http://about.me/rochacbruno/

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread VP
This is a good comment. I suggested a while ago that Web2py should have more slick supports for designing themes/templates. I think most programmers will work on the back end with emacs, vi, or their favorite editors, whereas the designers will probably favor the front end interface/IDE. But at

Re: [web2py] Escaping entities.

2011-01-26 Thread Bruno Rocha
response.title = XML('© Copyright 2011') 2011/1/26 David J. > How do I display HTML entities; > > ie; © Copyright > > I am doing response.title = '© Copyright 2011'; > > I see that text exactly in the title bar; > > I should see "© Copyright 2011" > > Thanks > >

Re: [web2py] DataTables plugin ordination

2011-01-26 Thread Bruno Rocha
You have to change ['bSort'] and ['aSorted'] properties on datatables.netjavascript, the plugin datatables has not an API to deal with datatables.net properties. Bruno Rocha http://about.me/rochacbruno/bio 2011/1/26 mmartinez > My question is this, as I do to sort in descending first columnade

Re: [web2py] Re: Common value for all application pages

2011-01-26 Thread Anthony
On Wednesday, January 26, 2011 12:56:56 PM UTC-5, rochacbruno wrote: > > To simplify, I think you just need to use models instead of modules folder. > > > Put the myfile.py in /models and you have access to any function, class or > variable defined in there. > > You can keep your file in modules

Re: [web2py] Why web2py? and not django?

2011-01-26 Thread Thadeus Burgess
web2py = programmers framework django = designers framework Do you have more designers or programmers? -- Thadeus On Wed, Jan 26, 2011 at 10:59 AM, Lars Hansson wrote: > Yeah, but if everyone sits around waiting for the champion to appear > there won't be one. Someone has to take the plunge.

[web2py] Escaping entities.

2011-01-26 Thread David J.
How do I display HTML entities; ie; © Copyright I am doing response.title = '© Copyright 2011'; I see that text exactly in the title bar; I should see "© Copyright 2011" Thanks

[web2py] DataTables plugin ordination

2011-01-26 Thread mmartinez
My question is this, as I do to sort in descending first columnade because the plugin shows me the sorted column in ascending order

[web2py] Re: Fresh Wizard install and plugin wiki not working...

2011-01-26 Thread JayShaffstall
I found this when I allowed the wizard to generate dummy database entries. Disallow that, and then the first user you register will be able to access plugin_wiki. Jay On Jan 26, 2:15 am, encompass wrote: > I installed the plugin wiki and when I try to access application_name/ > plugin_wiki/ and

[web2py] Re: creating table with custom sequence name

2011-01-26 Thread kralin
there is also the "problem" that a default sequence is created by DAL even if no sequence_name is specified, or sequence_name is set to None. still I don't know if this was the intended behavior. On 26 Gen, 16:51, kralin wrote: > here it is: > > http://code.google.com/p/web2py/issues/detail?id

[web2py] Re: SQLFORM and read-only references

2011-01-26 Thread Pawel Jasinski
hi, hi, i had the same idea in a mean time. Same effect :-( --pawel On Jan 26, 6:25 pm, Massimo Di Pierro wrote: > I will double check because clearly something is wrong. Meanwhile, how > about this: > > db.define_table('foo', Field('x'), format='%(x)s') > db.define_table('bar', Field('label'),

Re: [web2py] cherokee and web2py

2011-01-26 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I tried the book also, but it didn't work for me. May be you can try Cherokee + Web2py + uWSGI from http://web2pyslices.com/main/slices/take_slice/110 that was the one that worked for me. Cheers, Offray El 26/01/11 08:51, pr64 escribió: > Hi,

Re: [web2py] Fresh Wizard install and plugin wiki not working...

2011-01-26 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, El 26/01/11 02:15, encompass escribió: > I installed the plugin wiki and when I try to access application_name/ > plugin_wiki/ and login it tells me access denied. Did I do something > wrong? > I have the same behavior. You need to add the user

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread VP
To be fair, the most popular option right now is SQLAlchemy, an ORM. DAL appears to be a minority approach. So, ORM must be good at something right? To get web2py out of the PR's ditch, I think it's best to refrain from commenting on perceived weaknesses of Django and other technologies. On Ja

[web2py] Re: Represent not working in details on Powertable

2011-01-26 Thread jclevy
Bruno Rocha writes: > > > 2011/1/21 web2py noob > > > > bruno, what you say above is wrong. the workaround is: > > db.define_table('tablename', >    Field('fieldname',db.othertable, represent=lambda f:db.othertable[f].fieldname)) > > best regards. I found that on of last changesets chan

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread blackthorne
chmpion of what? object dabatases are the champions storing... objects relational dbms are the champions storing... relational data use the right tools right. On Jan 26, 4:59 pm, Lars Hansson wrote: > Yeah, but if everyone sits around waiting for the champion to appear > there won't be one. So

[web2py] Re: Start up error

2011-01-26 Thread jldistefano
The folder "applications" was empty so I create the folder "admin" and inside this one the "cron" folder, up to here all ok. I restarted web2py.exe and now the application starts, it ask me a password and tell me to visit http://127.0.0.1:8000. when I do that an INVALID REQUEST message appears in t

Re: [web2py] Re: Common value for all application pages

2011-01-26 Thread Bruno Rocha
To simplify, I think you just need to use models instead of modules folder. Put the myfile.py in /models and you have access to any function, class or variable defined in there. You can keep your file in modules, but it will be a little more complicated, you will need to create a model file which

[web2py] Re: Common value for all application pages

2011-01-26 Thread walter
Into the "modules" folder I created file (call it myfile.py for example). Into this file there is a variable "title". This variable contains value that is common for all pages of my application. If import var = local_import('myfile') and return dict(var=var) all be OK. But with many controllers I'

[web2py] Rocket wsgi for Intranet production app

2011-01-26 Thread greenpoise
I read on the Web2py Deployment recipes Chapter of the book that the webserver web2py runs in is should be avoided for production environments of high volume traffic. My setup is within the company (intranet) with limited access to other offices. I cant specify the volume of traffic it will receive

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Anthony
On Wednesday, January 26, 2011 10:45:45 AM UTC-5, villas wrote: > > Massimo, > > > "Even if there are multiple web servers, there must be one, and only > > one, database server. " > > This does appear to negate one of Web2py's best features, concurrent > access to multiple DB servers. How abo

[web2py] Re: SQLFORM and read-only references

2011-01-26 Thread Massimo Di Pierro
I will double check because clearly something is wrong. Meanwhile, how about this: db.define_table('foo', Field('x'), format='%(x)s') db.define_table('bar', Field('label'), Field('ref',db.foo)) in controller: def insertone(): id=db.foo.insert(x="xxx") db.bar.insert(label="label",ref=id) de

[web2py] Re: Common value for all application pages

2011-01-26 Thread Massimo Di Pierro
Not sure I undestand On Jan 26, 10:03 am, walter wrote: > I want to set common value for all pages. If do it manually, that is, > the probability of error, if I forget to do it. > Is there any option to regular automatically add some value to the > dictionary returned by the controller?

Re: [web2py] Why web2py? and not django?

2011-01-26 Thread Lars Hansson
Yeah, but if everyone sits around waiting for the champion to appear there won't be one. Someone has to take the plunge. Cheers, Lars Hansson

[web2py] Re: response.view does not work with @cache

2011-01-26 Thread Massimo Di Pierro
You can put this in a model: if application.function='option': response.view='default.html' On Jan 26, 9:41 am, selecta wrote: > this will not work since the inforamtion that a different view should > be userd is not chached > @cache(request.env.path_info, time_expire=360, cache_model=cache.ram

[web2py] Re: Callable as Field.default

2011-01-26 Thread Massimo Di Pierro
both. I think the code fix you propose should be included in trunk. At the same time, I'd prefer to have now() in the book. On Jan 26, 9:32 am, Vinicius Assef wrote: > Massimo, > will you fix the book or web2py source code? > > On Wed, Jan 26, 2011 at 12:49 PM, Massimo Di Pierro > > > > > > > >

  1   2   >