[web2py] Re: # in url

2012-01-12 Thread Annet
Hi Anthony, Thanks for your helpful reply. I tried solving the problem using JavaScript, but it turned out to be a css issue in firefox, so I finally took another route to solve the problem. Kind regards, Annet

[web2py] Re: Is it me or what?

2012-01-12 Thread Annet
Hi, > Thanks for pointing that out, this is probably a stupid question, but > where do I change the metadata author? In previous versions of web2py this was the way to set meta data: In menu.py or in a controller: ## read more at http://dev.w3.org/html5/markup/meta.name.html response.meta.autho

[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread Annet
Hi Andrew, Nice site. Just three questions, why did you swap photo gallery and login/join in the menu at the bottom? why not center the copyright message? isn't it possible to style the forum in the same colors as the rest of the site? Regards, Annet

[web2py] CRUD Form

2012-01-12 Thread tOlorun
Hello everyone Please iam trying to submit a crud.create form which iam loading as a component via ajax my url is not the url is not pointing to the function of the crud form i.e. my crud form is in a controller is celebrities and the function is set_up but my url is default/index (this is how

[web2py] Re: Is it me or what?

2012-01-12 Thread chawk
Thanks for pointing that out, this is probably a stupid question, but where do I change the metadata author? I put in my own meta tags, but the defaults that come with the app are showing up instea. I kept wondering why facebook would say "a cool new app" when trying to include it in a comment.

[web2py] SQLFORM: file upload

2012-01-12 Thread Martin Weissenboeck
Hi, I have built a form with SQLFORM(... upload=URL(r=request, f='download')...) There is a link to download the uploaded file (it's a picture) and a checkbox to delete this file. That is very simple and it works fine. But it does not look very nice: Foto: [file

[web2py] Re: Is it me or what?

2012-01-12 Thread Joseph Jude
You may want to change the metadata author. Site looks good. BTW, what plan of GAE are you on?

Re: [web2py] Re: URL Helper.

2012-01-12 Thread Bruno Rocha
Or can just create a new helper URLBuilder -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Output from some controller

2012-01-12 Thread blackshirt
i have some a littel coding with web2py framework.. here is my controller and file : def update(): cache = apt.Cache() progress = apt.progress.TextFetchProgress() res = cache.update(progress) return dict(res = res) in this related view.. {{extend 'layout.html'}} {{=res}} {{pass}} t

Re: [web2py] Re: URL Helper.

2012-01-12 Thread Jonathan Lundell
On Jan 12, 2012, at 12:22 PM, Massimo Di Pierro wrote: > We did this once and had to revert because it broke backward > compatibility. I guess we can try again but the object must derive > type string. Yeah, or its own class. URI, perhaps.

[web2py] Re: Is it me or what?

2012-01-12 Thread Anthony
Very nice site. On Thursday, January 12, 2012 6:33:58 PM UTC-5, chawk wrote: > > Some of the sites on the "gallery of sites" look good, but are not > being actively updated it seems. Ourway looks good, but what does it > do, and why does it seem like it is not finished? > > Web2py is the best

[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread Anthony
Looks nice. Just added to poweredby list. Anthony On Thursday, January 12, 2012 6:47:51 PM UTC-5, Andrew wrote: > > Hey there I have a new site available to show the web2py community. My > Friend/Business Partner/Team mate built most the code in other projects, I > just kind of tweaked it fixed

[web2py] Re: Very Confused: DAL query bug??

2012-01-12 Thread Anthony
On Thursday, January 12, 2012 6:41:53 PM UTC-5, chawk wrote: > > > It seems that you are not querying right, > >last = db().select(db.distributors.ALL) > If you select all the fields in the table, then no need to specify a query, as the DAL infers db.distributors.id>0 in that case. >

[web2py] Re: Need a instruction for Rating Plugin

2012-01-12 Thread kenji4569
I made a similar plugin before, and now uploaded it to my plugin site: http://dev.s-cubism.com/plugin_rating_widget The plugin provide a form widget to generate the rating chooser. Just give it a try. (Note that the plugin has some boilerplate codes for dealing with ajax form and for custom

Re: [web2py] Re: New Site for web2py poweredby

2012-01-12 Thread Andrew Evans
ty very much :-) On Thu, Jan 12, 2012 at 4:33 PM, chawk wrote: > I just checked it out again, the forum looks great!

[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread chawk
I just checked it out again, the forum looks great!

Re: [web2py] Re: New Site for web2py poweredby

2012-01-12 Thread Andrew Evans
I also removed the sign up unless you want to post an article or blog post *cheers On Thu, Jan 12, 2012 at 4:20 PM, Andrew Evans wrote: > Great advice! Fixed everything you suggested > > > On Thu, Jan 12, 2012 at 4:05 PM, chawk wrote: > >> Your footer should follow the same layout as the nav

[web2py] Re: why won't web2py create the databases

2012-01-12 Thread villas
I used to have a few problems like you describe, but then I decided to make use of Sqlite. It is so easy to set it up and then tear down - and throw it away! So, now when I first start to write an app, I use Sqlite initially. After defining my tables, I spend some extra time adding some te

Re: [web2py] Re: New Site for web2py poweredby

2012-01-12 Thread Andrew Evans
Great advice! Fixed everything you suggested On Thu, Jan 12, 2012 at 4:05 PM, chawk wrote: > Your footer should follow the same layout as the nav bar, meaning 100% > width across the screen. > > I cant really see the forum without signing up first. > > Your copyright symbol is not showing up. >

[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread chawk
Your footer should follow the same layout as the nav bar, meaning 100% width across the screen. I cant really see the forum without signing up first. Your copyright symbol is not showing up. It looks okay, but I will let some more technical members give their comments.

Re: [web2py] Re: New Site for web2py poweredby

2012-01-12 Thread Andrew Evans
No worries no harm done :-) On Thu, Jan 12, 2012 at 3:59 PM, chawk wrote: > > Okay, turns out I am not able to click on the anchor for this post or > another post I just put up myself. Google is giving me a 404 error > page. The problem appears to be on my end. > > Sorry,

[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread chawk
Okay, turns out I am not able to click on the anchor for this post or another post I just put up myself. Google is giving me a 404 error page. The problem appears to be on my end. Sorry,

[web2py] Re: Is it me or what?

2012-01-12 Thread chawk
Apparently none of the links to leave Google groups are working.

Re: [web2py] Re: New Site for web2py poweredby

2012-01-12 Thread Andrew Evans
Really? works for me.. On Thu, Jan 12, 2012 at 3:53 PM, chawk wrote: > Your link is not working :(

[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread chawk
Your link is not working :(

[web2py] New Site for web2py poweredby

2012-01-12 Thread Andrew Evans
Hey there I have a new site available to show the web2py community. My Friend/Business Partner/Team mate built most the code in other projects, I just kind of tweaked it fixed a few bugs and added/subtracted some features Anyway everything is coded in web2py including the forums... We had to snag

[web2py] Re: Very Confused: DAL query bug??

2012-01-12 Thread chawk
It seems that you are not querying right, last = db().select(db.distributors.ALL) it seems it should be, ## this is how I usually grab the entire table ## last = db(db.distributors.id>0).select() then display your object in the view like this, {{for i in last:}} {{=i.upline_id}}

[web2py] Re: Very Confused: DAL query bug??

2012-01-12 Thread Bruce Wade
Never mind, not sure what happened restarted my browser and the problem is gone. On Thu, Jan 12, 2012 at 3:30 PM, Bruce Wade wrote: > Hi, > > Not sure what is causing this to happen, the select is not using the table > name I have provided: > > Tried: > last = db().select(db.distributors.ALL) >

[web2py] Is it me or what?

2012-01-12 Thread chawk
Some of the sites on the "gallery of sites" look good, but are not being actively updated it seems. Ourway looks good, but what does it do, and why does it seem like it is not finished? Web2py is the best framework out there, but it seems that some of our pages are not representing it well enough

[web2py] Very Confused: DAL query bug??

2012-01-12 Thread Bruce Wade
Hi, Not sure what is causing this to happen, the select is not using the table name I have provided: Tried: last = db().select(db.distributors.ALL) and: last = db().select(db['distributors'].ALL) Notice I used "distributor*s*" Traceback (most recent call last): File "/home/bruce/Development/b

[web2py] Re: controller question

2012-01-12 Thread chawk
Thanks for the reply. Sorry about the duplicate post and incorrect spelling, I was not trying to spam or bump the post, i was using a stupid smartphone and it kept stating the post was not going through. So far I have experienced no slowdowns with a controller file over 7 mb. I am using the Goo

[web2py] Re: Pagination issue in GAE using web2py

2012-01-12 Thread howesc
to play this game on GAE: - consider de-normalizing the data and storing a list of activities on each user record. - get the data from table X, then do a query on table Y like: "db(db.Y.id.belongs(keys).select()" where keys is a list of IDs from the first query. remember that GAE limits belo

Re: [web2py] Deadline exceeded error/ Downloading data in csv via application

2012-01-12 Thread howesc
the missing piece of info is that Saurabh is running on google app engine. it's obvious to me only because i deal with this lots Saurabh - some things you can try: - use a GAE backend instance. it can have unlimited time to process the request, though it does not have unlimited memory. -

[web2py] Re: Controller file size question

2012-01-12 Thread howesc
silly google must not have been posting welli responded here: https://groups.google.com/forum/#!topic/web2py/udtax5-ONz4

[web2py] Re: controller question

2012-01-12 Thread howesc
i doubt it matters much. i have controllers of all sizes. i find that my biggest slowdown is in the parsing of my full (50+ tables) model on each request and am working on breaking that into modules that i can include only the tables that i need for a given request.

Re: [web2py] Need a instruction for Rating Plugin

2012-01-12 Thread Chris Hawkes
I did take a look at that myself. I find it much harder to figure out how to apply a plugin to my design then to just do it all over myself specific to my design. If you are beginner it will be a nightmare. You should prabably make your own with simple form variables using jquery and CSS to

[web2py] How can I use an alternate(non-root) directory in a production deployment?

2012-01-12 Thread tomt
I followed the manual's instruction for deploying web2py in a production environment using apache and wsgi, and it works as advertised. Calling http://domain.com/app1/default/function works just like it did when I ran the rocket server from the command line. I really want web2py to run from a subd

[web2py] Re: html5 charting library

2012-01-12 Thread Rive
Another great library: http://www.highcharts.com/ >From the home page: " Highcharts is a charting library written in pure JavaScript, offering intuitive, interactive charts to your web site or web application. Highcharts currently supports line, spline, area, areaspline, column, bar, pie and scat

[web2py] Re: URL Helper.

2012-01-12 Thread Massimo Di Pierro
We did this once and had to revert because it broke backward compatibility. I guess we can try again but the object must derive type string. On Jan 12, 10:43 am, Jonathan Lundell wrote: > On Jan 12, 2012, at 8:33 AM, Anthony wrote: > > > > > > > > > > > On Thursday, January 12, 2012 10:59:09 AM U

[web2py] Re: html5 charting library

2012-01-12 Thread Rive
I like this one: http://www.highcharts.com/ Regards, Rive. On 12 ene, 16:12, António Ramos wrote: > Open your eyes to this beauty > > http://raphaeljs.com/ichart.html > > 2012/1/12 Bruno Rocha > > > > > > > > > I like to use wijmo charts (but it is not free) > > > Googlecharts is very easy to

[web2py] controller question

2012-01-12 Thread chawk
What is the largest advisable size for a controller file using Google apparently engine?

[web2py] controller question

2012-01-12 Thread chawk
What is the largest advisable size for a controller file using Google apparently engine?

[web2py] controller question

2012-01-12 Thread chawk
What is the largest advisable size for a controller file using Google apparently engine?

[web2py] controller question

2012-01-12 Thread chawk
What is the largest advisable size for a controller file using Google apparently engine?

[web2py] An error in a SQLFORM.grid with multi-byte characters?

2012-01-12 Thread Martin Weissenboeck
Let's say I have made a SQLFORM.grid. There is a cell containing "--ÄÖÜ" and everything looks fine: --ÄÖÜ If I add one hyphen the string will be too long. But it is not the whole character 'Ü' which will be cropped, it's only the second byte. The utf-8 coding of 'Ü' is 0x

[web2py] Controller file size question

2012-01-12 Thread Chris Hawkes
What is the largest advisable file size limit for a controller file using Google appengine? Sent from my Samsung smartphone on AT&T

Re: [web2py] remove www from URL, maybe oath20_account.py bug...

2012-01-12 Thread Jonathan Lundell
On Jan 12, 2012, at 11:36 AM, Tito Garrido wrote: > Using mod_rewrite I got: > > # to remove www -> httpd.conf > RewriteEngine On > RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [NC] > RewriteRule ^(.*)$ http://mydomain.com.br/ [R=301,L] > > It's redirecting to: > mydomain.com/webapps/web2py27/web

Re: [web2py] remove www from URL, maybe oath20_account.py bug...

2012-01-12 Thread Tito Garrido
Looks like this mod_rewrite works... probably the error was cache... On Thu, Jan 12, 2012 at 5:36 PM, Tito Garrido wrote: > Using mod_rewrite I got: > > # to remove www -> httpd.conf > RewriteEngine On > RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [NC] > RewriteRule ^(.*)$ http://mydomain.com.br

Re: [web2py] remove www from URL, maybe oath20_account.py bug...

2012-01-12 Thread Tito Garrido
Using mod_rewrite I got: # to remove www -> httpd.conf RewriteEngine On RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [NC] RewriteRule ^(.*)$ http://mydomain.com.br/ [R=301,L] It's redirecting to: mydomain.com/webapps/web2py27/web2py/wsgihandler.py/ Any clue what am I doing wrong? On Thu, Jan 1

Re: [web2py] remove www from URL, maybe oath20_account.py bug...

2012-01-12 Thread Jonathan Lundell
On Jan 12, 2012, at 11:12 AM, Tito Garrido wrote: > Hey folks! > > Is there a way, maybe using routes, to remove www.mydomain.com from the URL? Use apache, or the equivalent, to redirect www accesses to the base domain. But there does seem to be a bug as well. > > I mean when the user type ww

Re: [web2py] html5 charting library

2012-01-12 Thread António Ramos
Open your eyes to this beauty http://raphaeljs.com/ichart.html 2012/1/12 Bruno Rocha > I like to use wijmo charts (but it is not free) > > Googlecharts is very easy to use, I created a plugin for google charts > ajax api. > > http://zerp.ly/rochacbruno > Em 12/01/2012 11:40, "Kenneth" escre

[web2py] remove www from URL, maybe oath20_account.py bug...

2012-01-12 Thread Tito Garrido
Hey folks! Is there a way, maybe using routes, to remove www.mydomain.com from the URL? I mean when the user type www.mydomain.com goes to mydomain.com... I'm asking because I'm having problems with facebook authentication... when I try to login from www.mydomain.com it returns: Traceback (most

Re: [web2py] html5 charting library

2012-01-12 Thread Bruno Rocha
I like to use wijmo charts (but it is not free) Googlecharts is very easy to use, I created a plugin for google charts ajax api. http://zerp.ly/rochacbruno Em 12/01/2012 11:40, "Kenneth" escreveu: > Hello, > > has anybody done any comparing of different html5 charting libraries? > > Something q

[web2py] Re: examples app doesn't run on apache

2012-01-12 Thread Likit
I think the issue is with caching. Examples is the only app that I've run with caching on by default (all the funcs in its default.py are decorated). Since inmemory appears to be the default it is possible that apache is running out of RAM. Sort of surprising as it works in rocket and this is a 4

[web2py] Re: examples app doesn't run on apache

2012-01-12 Thread Likit
I think the issue is with caching. Examples is the only app that I've run with caching on by default (all the funcs in its default.py are decorated). Since inmemory appears to be the default it is possible that apache is running out of RAM. Sort of surprising as it works in rocket and this is a 4

[web2py] Re: why won't web2py create the databases

2012-01-12 Thread Anthony
On Wednesday, January 11, 2012 11:44:48 PM UTC-5, Likit wrote: > > I guess I like SQL better than frameworks. SQL is a query language for > DDL and DML that is well documented and completely explicitly. > Frameworks are opaque and invent a new syntax subject to ambiguities > of parens, square br

[web2py] Re: html5 charting library

2012-01-12 Thread Gerd
Hi! I use dygraphs, here you can try some examples -> http://dygraphs.com/experimental/palette/ Regards Gerd

[web2py] Re: don't understand forms processing

2012-01-12 Thread Anthony
On Thursday, January 12, 2012 4:37:41 AM UTC-5, Likit wrote: > > I really don't get the use of {{form}} in views. It's really too > opaque. The form=crud and form=SQLFORM really only do trivial cases > involving a single table. > I wouldn't say handling a single table is a trivial case, but

[web2py] Re: routes for subdomains

2012-01-12 Thread Carlos
Thanks Jonathan and Massimo for your input !

[web2py] Re: why won't web2py create the databases

2012-01-12 Thread Likit
Thanks for the replies. I deleted the tables themselves--not in app/databases but from the mysql dir where they are kept. I then use phpmyadmin to create an empty d-b, as required when using mysql. (Yes, I read the db chapter on the web2py book.) I don't believe you are seeing a period in the db

[web2py] Re: don't understand forms processing

2012-01-12 Thread Likit
I had another problem accessing the examples with my apache config (separate thread). Under rocket server I could see those examples. Yes, I think the products or dog registration examples illustrate what I need. On Jan 12, 4:33 am, stefaan wrote: > Have you looked here?http://web2py.com/examples

[web2py] Re: examples app doesn't run on apache

2012-01-12 Thread Likit
Here is the returned page when clicking on the help button in the extreme upper right corner of the admin page: Service unavailable! The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. If you think this is a server er

[web2py] Re: web2py fails when mysql tables already exist

2012-01-12 Thread Likit
So, all of the above problems appear to be related to some sort of corruption that resulted in the default.py controller. I noticed that in the traceback it would be shown with 2 additional lines that I did not enter. I did not see these in any external editor. I had previously backed up the appl

[web2py] Re: web2py fails when mysql tables already exist

2012-01-12 Thread Anthony
> > I guess I am getting really tired of the unbearable fragility of > web2py. Just pretty bush league, I guess. > Likit, as you formulate your posts, please keep in mind that not only has web2py been provided to you for free, but in this forum, you are directly addressing those who have crea

[web2py] Re: LOAD, javascript and a loading gif

2012-01-12 Thread Liam
So I feel a little sheepish now. Making those two changes gives me the second solution to the problem. On Jan 11, 6:18 pm, Anthony wrote: > Two errors. I forgot to remove the tag -- it isn't needed in > response.js because the returned JS is eval'ed. Also, in your code, you > have request.js, bu

[web2py] Re: Inline image generation with matplotlib

2012-01-12 Thread andrej burja
controller: def myimage(): import cStringIO fig=Figure() canvas=FigureCanvas(fig) stream=cStringIO.StringIO() canvas.print_png(stream) return stream.getvalue() view: {{extend 'layout.html'}} This is the graph/myimage.html template {{=IMG(_src=URL('myimage'))}} resault

[web2py] Need a instruction for Rating Plugin

2012-01-12 Thread Omi Chiba
I'm trying to use the plugin but it doesn't provide me much information. http://www.web2py.com/plugins/default/rating Is there anyone who use it and who can provide me a little bit more details ?

Re: [web2py] URL Helper.

2012-01-12 Thread Jonathan Lundell
On Jan 12, 2012, at 8:33 AM, Anthony wrote: > On Thursday, January 12, 2012 10:59:09 AM UTC-5, Jonathan Lundell wrote: > It's an interesting idea, but URL just returns a string, and aside from being > a fairly big rewrite, it's likely that it would break existing code that > relies on it being a

Re: [web2py] URL Helper.

2012-01-12 Thread Anthony
On Thursday, January 12, 2012 10:59:09 AM UTC-5, Jonathan Lundell wrote: > > It's an interesting idea, but URL just returns a string, and aside from > being a fairly big rewrite, it's likely that it would break existing code > that relies on it being a string. > > You could create your own object

Re: [web2py] URL Helper.

2012-01-12 Thread Jonathan Lundell
On Jan 12, 2012, at 8:18 AM, David wrote: > Jonathan, > > I just looked at the helper. > > I see what your saying. > > I had thought it uses the __str__ or __repr__ to output the URL. > > I do think it would have been a useful thing to do so I am going to do as you > suggested before. One th

Re: [web2py] Deadline exceeded error/ Downloading data in csv via application

2012-01-12 Thread Michele Comitini
You have a slow query. 1000 records is a little set for today computing power. Can you give details on the query? Which database are you using? Try using SQL directly by the executesql method of dal. mic Il giorno 12/gen/2012 07:46, "Saurabh S" ha scritto: > Hi, > > I am developing an online

Re: [web2py] URL Helper.

2012-01-12 Thread David
Jonathan, I just looked at the helper. I see what your saying. I had thought it uses the __str__ or __repr__ to output the URL. I do think it would have been a useful thing to do so I am going to do as you suggested before. Thanks. On 1/12/12 11:08 AM, Jonathan Lundell wrote: On Jan 12,

Re: [web2py] URL Helper.

2012-01-12 Thread Jonathan Lundell
On Jan 12, 2012, at 8:05 AM, David wrote: > I dont see how adding access functions would cause an entire re-write; > > Seems like we would just need to add "get" functions to the class; > > I think the way it works now is great; but it should also offer the ability > to check app, func, contoll

Re: [web2py] URL Helper.

2012-01-12 Thread David
I dont see how adding access functions would cause an entire re-write; Seems like we would just need to add "get" functions to the class; I think the way it works now is great; but it should also offer the ability to check app, func, contoller, scheme, and so on. Clearly the helper knows abou

Re: [web2py] URL Helper.

2012-01-12 Thread Jonathan Lundell
On Jan 12, 2012, at 7:11 AM, David wrote: > I think it would be a worthwhile feature to be able to get information from a > URL helper object. > > For example, > > If we create a tuple of URL objects, and we want to loop through them, we may > want to be able to extract things like vars and ar

Re: [web2py] Re: DAL and Multiprocess pooling..

2012-01-12 Thread Phyo Arkar
Finally this works by doing this , it avoid pickling but opens database connection that is local to each processes. def pool_initalizer(*val_arr): global database db_name,db_path = val_arr database = generate_db(db_name,db_path) print "obj id %s " % id(database) def pooler(fpath

Re: [web2py] Forwarding domain to a port

2012-01-12 Thread Jonathan Lundell
On Jan 12, 2012, at 4:48 AM, Najtsirk wrote: > I successfully instaled web2py on my VPS. However, I have problem to forward > my domain to port 8000. I can access web2py at www.mydomain.com:8000/welcome. > How can I forward domain so that www.mydomain.com will actually show > www.mydomain.com:

Re: [web2py] Re: URL Helper.

2012-01-12 Thread David
I could also imagine; I may want to do this at some point. URL().args.append('arg3') On 1/12/12 10:20 AM, Anthony wrote: What's your use case? On Thursday, January 12, 2012 10:11:14 AM UTC-5, David J wrote: I think it would be a worthwhile feature to be able to get information

Re: [web2py] Re: URL Helper.

2012-01-12 Thread David
Right now I am using it for response.menu But I want to be able to do some sort of grouping based on either controller or function. so I store all my urls in as in the /models/menu.py then I do things like check if the user is logged in and add more to that menu; Now I want to do some disp

[web2py] Re: web2py powerby screenshot

2012-01-12 Thread Massimo Di Pierro
good job indeed. On Jan 12, 9:26 am, Francisco Costa wrote: > Thanks, we've been working hard on it > > No Massimo, it's a simple input that submits via ajax() web2py > function. We then return the result by getting the id of the form. > > I will send invitations very soon. I will also provide an

[web2py] Re: DAL and Multiprocess pooling..

2012-01-12 Thread Massimo Di Pierro
no. you cannot pickle a database connection. On Jan 12, 9:04 am, Phyo Arkar wrote: > I think what i am trying to do is pickling db object. > This will never work , right? > > On Thu, Jan 12, 2012 at 9:10 PM, Phyo Arkar wrote: > > > > > > > > > Hello Web2py , happy new year! > > > I am trying to u

[web2py] Re: Pagination issue in GAE using web2py

2012-01-12 Thread Massimo Di Pierro
SQLFORM.grid does pagination On Jan 12, 8:53 am, Saurabh S wrote: > Hi, > > I am developing an online booking application in python using web2py > framework on google app engine. > > I have  two tables, one is users table and other is activities table. > My users table contains user id for each r

Re: [web2py] admin password

2012-01-12 Thread Alexandre Andrade
completing just stop the web2py server (or apache) and run in console: # python web2py it will ask you a new password look at port it runs (like 8000) and copy the file to run in port 443 (https): # cp parameters_8000.py parameters_443.py Alexandre Andrade 2012/1/12 Alexandre Andrade >

[web2py] Re: Bug in languages.py

2012-01-12 Thread Anders Roos
I wrote a smaller test case to trigger the bug and it turned out that there was more to the problem than this. The second problem is that the open statement is done outside the lock, and that will truncate the file. To solve the issue you need to lock the file before the open statement. I have

[web2py] Re: web2py powerby screenshot

2012-01-12 Thread Francisco Costa
Thanks, we've been working hard on it No Massimo, it's a simple input that submits via ajax() web2py function. We then return the result by getting the id of the form. I will send invitations very soon. I will also provide an early access code for the web2py community. On Jan 12, 2:41 pm, Massim

Re: [web2py] admin password

2012-01-12 Thread Alexandre Andrade
just stop the web2py server (or apache) and run in console: # python web2py it will ask you a new password Alexandre Andrade 2012/1/12 lucas > hello one and all, > > i am stupid. i forgot the web2py admin password on my server and i > can't access the https interface. how can i change the

[web2py] Re: URL Helper.

2012-01-12 Thread Anthony
What's your use case? On Thursday, January 12, 2012 10:11:14 AM UTC-5, David J wrote: > > I think it would be a worthwhile feature to be able to get information > from a URL helper object. > > For example, > > If we create a tuple of URL objects, and we want to loop through them, > we may want t

[web2py] URL Helper.

2012-01-12 Thread David
I think it would be a worthwhile feature to be able to get information from a URL helper object. For example, If we create a tuple of URL objects, and we want to loop through them, we may want to be able to extract things like vars and args that were set when the object was created. ie: ur

[web2py] Re: DAL and Multiprocess pooling..

2012-01-12 Thread Phyo Arkar
I think what i am trying to do is pickling db object. This will never work , right? On Thu, Jan 12, 2012 at 9:10 PM, Phyo Arkar wrote: > Hello Web2py , happy new year! > > I am trying to use DAL outside in a script file , here is the code : > > def generate_dbs(db_name,db_path): > #casesdb =

[web2py] PluginManager, how to use it in a module?

2012-01-12 Thread Angelo Compagnucci
HI guys, I'm trying to use PluginManager in a module, but I get very strange errors runtime. Settings I define on PluginManager are empty and I cannot find a location in the code where it works! Can you send me a simple example on howto use PluginManager in a module, a simple dummy module? The mo

[web2py] Pagination issue in GAE using web2py

2012-01-12 Thread Saurabh S
Hi, I am developing an online booking application in python using web2py framework on google app engine. I have two tables, one is users table and other is activities table. My users table contains user id for each record and my activities table contains user id for whom an activity has been cre

Re: [web2py] Re: html5 charting library

2012-01-12 Thread Angelo Compagnucci
I made something with: http://www.jqplot.com/ Great library, You can feed datas in json, so it's very easy to interface with a json service in web2py. Unfortunately it has a convoluted documentation, you'll get some time to be acquainted to. http://raphaeljs.com/ Exterminated graphic library, no

[web2py] Re: web2py powerby screenshot

2012-01-12 Thread Massimo Di Pierro
I really like the form for requesting invitation. Is that a jquery plugin? On Jan 12, 8:07 am, Anthony wrote: > Done. Thanks for the heads up. I like the new look. > > Anthony > > > > > > > > On Thursday, January 12, 2012 8:33:03 AM UTC-5, Francisco Costa wrote: > > > Can anyone change tymr.com s

[web2py] DAL and Multiprocess pooling..

2012-01-12 Thread Phyo Arkar
Hello Web2py , happy new year! I am trying to use DAL outside in a script file , here is the code : def generate_dbs(db_name,db_path): #casesdb = DAL( 'mysql://root@localhost/' + db_name, folder = db_path ) #casesdb.define_table( 'email_data', migrate = True, *email_halfschema ) #case

Re: [web2py] Re: html5 charting library

2012-01-12 Thread Kenneth Lundström
I don't have a clue of what is out there. My client talked about D3.js or Ext js but I don't know if there is any more. Kenneth can you provide a shortlist? I'd be happy to give them a try. On Jan 12, 7:40 am, Kenneth wrote: Hello, has anybody done any comparing of different html5 chartin

[web2py] Re: html5 charting library

2012-01-12 Thread Massimo Di Pierro
can you provide a shortlist? I'd be happy to give them a try. On Jan 12, 7:40 am, Kenneth wrote: > Hello, > > has anybody done any comparing of different html5 charting libraries? > > Something quite easy to use, good documentation. > > Kenneth

[web2py] Re: How do you manage your app repo with Mercurial

2012-01-12 Thread Dave
I just put an entry in /etc/hosts on my mac to resolve the database server hostname to 127.0.0.1. That way I'm not changing anything at all that may later in a quick bug-fix -> deploy mode I might miss. That way the connect string is always the same. I run my apps on EC2 using the RDS so the host

[web2py] Re: Inline image generation with matplotlib

2012-01-12 Thread Massimo Di Pierro
I do not not understand the problem. Specifically > overriding everythin else in the view what does it mean? On Jan 12, 5:46 am, andrej burja wrote: > controller/myimage > does not work for me, it displays content of png file > controller/myimage.png > does display html with included image > >

[web2py] Re: examples app doesn't run on apache

2012-01-12 Thread Massimo Di Pierro
The web2py site runs under apache with all the examples. Something else is the problem. Can you give us more info? On Jan 12, 3:49 am, Likit wrote: > I guess I could learn a lot from the examples.  It's what they are > there for.  But, when run with mod_wsgi and apache, you get service > unavaila

[web2py] Re: form checkbox keepvalues

2012-01-12 Thread Massimo Di Pierro
 INPUT(_type='checkbox', _name='mychkbx', _id='mychkbx', value=request.vars.mychkbx) should do it. On Jan 12, 3:19 am, niktar wrote: > Hi! > I'm trying to create a form that would have keep the entered value of the > checkbox, but the value always is set to false. > > def form(): > > >     form=

  1   2   >