[web2py] Re: how to get MySQLdb working with web2py source distribution?

2010-03-14 Thread Igor Gassko
Yes, I did, and it worked. However, I wanted to make sure that I can work with source distribution as well. At this moment it does work both ways. On Mar 14, 9:59 pm, mdipierro wrote: > The web2py binary distribution for windows include mysql driver. Did > you try that? > > On Mar 14, 11:32 am, I

[web2py] Countdown system...

2010-03-14 Thread Jason Brower
I want to have a nifty countdown on my website. I want your advice on if I am doing this right in theory. When I click on objects in the page it should add or remove time from a main countdown timer. So my thought is to take the time that this product will be completed, and subtract that from the

Re: [web2py] Re: "One click" start for local development?

2010-03-14 Thread Jason Brower
Yeah, I do it with a desktop use (attachment). This one pops up the ui though. But being development wouldn't you want to see if your server is running and if it's got issues? (I thought a task bar icon would be nice, but I don't have time to develop that.) Best Regards, Jason Brower On Sun, 2010

[web2py] Re: Checking if a webserver if running web2py

2010-03-14 Thread Graham Dumpleton
You can potentially also use any error page as a tell tale fingerprint if defaults are used as different frameworks are going to each have their own. For example: http://www.web2py.com/examples/default/xxx Returns: invalid function The idea of an 'invalid function' could be viewed as distinct

[web2py] Re: Checking if a webserver if running web2py

2010-03-14 Thread Richard
if /default/index aliases to the main page then it is likely web2py. On Mar 15, 5:51 am, Albert Abril wrote: > Hi! > > There's some way to check to check from the browser if a web is running > web2py? > For example, Could i know ifwww.web2py.comis running web2py from the > browser? > > Just curi

[web2py] Re: Checking if a webserver if running web2py

2010-03-14 Thread mdipierro
The fact is web2py_ajax.html is embedded in the page, not requested separately. You have no direct access to this file via the client. It includes calendar.js. I guess you can use IF_MODIFIED_SINCE to check the datetime of calendar.js but this file was never modified. On Mar 14, 5:24 pm, Thadeus

[web2py] Re: web2py beautification

2010-03-14 Thread mdipierro
I think we should distinguish between a layout css framework (oocss, 960, etc. include it) and a content css framework (jquery ui only does this). Perhaps we can pick the layout css from one place and the content css from jquery. It is important that class names are easy to read and we can fit eve

Re: [web2py] Re: Checking if a webserver if running web2py

2010-03-14 Thread Thadeus Burgess
You can also check the servers datetime stamp of the web2py_ajax.html, depending on this, you can know what version of web2py is actually running(assuming it hasn't been edited)... so you can specifically target web2py versions (based on date version came out) that have known vulnerabilities. -Tha

[web2py] Re: web2py beautification

2010-03-14 Thread johntynan
While I admire and would welcome having the option of using 960 grid templates, Massimo's suggestion of incorporating jquery's themeroller into the welcome app sounds equally interesting. I'm not much of a designer, but I value the ideal of a tableless design. I'd be willing to try to free up som

[web2py] Re: define_tables(username=True)

2010-03-14 Thread mdipierro
They should have been but if we do now we trigger a migration and migrating fields from not unique to unique can cause trouble. Massimo On Mar 14, 4:02 pm, Jonathan Lundell wrote: > On Mar 14, 2010, at 1:34 PM, mdipierro wrote: > > > done. > > Thanks. > > And a related question: why are the fiel

Re: [web2py] Re: define_tables(username=True)

2010-03-14 Thread Jonathan Lundell
On Mar 14, 2010, at 1:34 PM, mdipierro wrote: > done. Thanks. And a related question: why are the fields that are marked IS_NOT_IN_DB not also marked unique? (username, email, role) > > On Mar 14, 3:29 pm, Jonathan Lundell wrote: >> On Mar 14, 2010, at 1:23 PM, mdipierro wrote: >> >>> It is

[web2py] Re: define_tables(username=True)

2010-03-14 Thread mdipierro
done. On Mar 14, 3:29 pm, Jonathan Lundell wrote: > On Mar 14, 2010, at 1:23 PM, mdipierro wrote: > > > It is an excellent idea. It is in trunk, can you please check it. If > > you had something different in mind, please let me know. > > That looks good to me. Maybe give it a label, like the othe

[web2py] Re: Wiki for n00b?

2010-03-14 Thread FaustCoder
On Mar 13, 1:30 pm, ludwa6 wrote: > Having just stumbled upon web2py <24hrs ago, i'm quite excited by the > promise of this framework, and how quickly it enables a novice > programmer like myself to build things that might even be useful. > > That being said: for my first real application, i nee

[web2py] Re: Checking if a webserver if running web2py

2010-03-14 Thread mdipierro
I cannot think if an way that works 100%. I did not put any way to do it because security good practice requires that there is no way to detect what software the server is running because if a vulnerability is discovered, an attacked would be able to detect which servers have the software with the

Re: [web2py] Re: define_tables(username=True)

2010-03-14 Thread Jonathan Lundell
On Mar 14, 2010, at 1:23 PM, mdipierro wrote: > It is an excellent idea. It is in trunk, can you please check it. If > you had something different in mind, please let me know. That looks good to me. Maybe give it a label, like the other fields? > > Massimo > > On Mar 14, 1:13 pm, Jonathan Lund

[web2py] Re: define_tables(username=True)

2010-03-14 Thread mdipierro
It is an excellent idea. It is in trunk, can you please check it. If you had something different in mind, please let me know. Massimo On Mar 14, 1:13 pm, Jonathan Lundell wrote: > Having a username must be a pretty common requirement (and has native support > in, eg, login), and it seems a sham

[web2py] Re: errorless ajax bugs - how to prevent?

2010-03-14 Thread mdipierro
I am not sure. Mostly because of ajax calls are executed in a loop the notification may lock the browser. What do other people this? It would be easy to do. Massimo On Mar 14, 12:38 pm, "mr.freeze" wrote: > Perhaps the ajax function in web2py_ajax.html should be hacked to > flash a link to the

[web2py] Re: Bug in DocTests?

2010-03-14 Thread mdipierro
fantastic. I am uploading the solution to trunk. Thank you. On Mar 14, 11:44 am, Joschua wrote: > I looked into the python documentation and find DocTestFinder: > > http://pygments.org/demo/3361/?style=fruity > > My script will print: > > Finding tests in sample > 0 > Finding tests in with_doctes

[web2py] Re: how to get MySQLdb working with web2py source distribution?

2010-03-14 Thread mdipierro
The web2py binary distribution for windows include mysql driver. Did you try that? On Mar 14, 11:32 am, Igor Gassko wrote: > I tried using this one earlier in order to install MySQL driver from > sources distribution (version 1.2.3c1), but it crashed during the > install (all sorts of build error

[web2py] Checking if a webserver if running web2py

2010-03-14 Thread Albert Abril
Hi! There's some way to check to check from the browser if a web is running web2py? For example, Could i know if www.web2py.com is running web2py from the browser? Just curious. Thanks. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post t

[web2py] define_tables(username=True)

2010-03-14 Thread Jonathan Lundell
Having a username must be a pretty common requirement (and has native support in, eg, login), and it seems a shame to have to completely define the user table in order to get it. Massimo, would you take a simple patch to add a username option to define_tables (defaulting to False, of course)?

[web2py] Re: "One click" start for local development?

2010-03-14 Thread leone
#!/bin/sh cd ./web2py cat /dev/null > httpserver.log python web2py.py -a password -i 127.0.0.1 -p 8000 -f /home// web2py leone On 14 Mar, 18:28, Hillman wrote: > Is there a way to start up the local server without needing to use the > GUI? > > Something like: $ python web2py.py --port=80

[web2py] Re: errorless ajax bugs - how to prevent?

2010-03-14 Thread mr.freeze
Perhaps the ajax function in web2py_ajax.html should be hacked to flash a link to the ticket if an error occurs during an ajax request. On Mar 14, 11:45 am, Mengu wrote: > my advice is not web2py related but when i am dealing with ajax and > javascript in general i always fire up my firebug conso

[web2py] "One click" start for local development?

2010-03-14 Thread Hillman
Is there a way to start up the local server without needing to use the GUI? Something like: $ python web2py.py --port=8000 --admin- password= And then just have it start as if I hit the "Start Server" button? Thanks. -- You received this message because you are subscribed to the Google Groups

[web2py] Re: errorless ajax bugs - how to prevent?

2010-03-14 Thread Mengu
my advice is not web2py related but when i am dealing with ajax and javascript in general i always fire up my firebug console. On 14 Mart, 10:43, snfctech wrote: > You're right.  The example I gave isn't holding up anymore!  (I swear, > I didn't change my code since my last post!) I'm getting tic

[web2py] Re: Bug in DocTests?

2010-03-14 Thread Joschua
I looked into the python documentation and find DocTestFinder: http://pygments.org/demo/3361/?style=fruity My script will print: Finding tests in sample 0 Finding tests in with_doctests 3 Maybie this could be used.. On 13 Mrz., 17:18, mdipierro wrote: > I looked into this. It is a python issu

[web2py] Re: Where do you use web2py?

2010-03-14 Thread Mengu
i am currently developing a business networking application with web2py. after that i will get into the CRM market. On 12 Mart, 11:42, "Giovanni Giorgi" wrote: > Hi all, >  in the attempt to better knowing web2py and its community, > I'd like to write some entry on my blog (gioorgi.com). > I want

[web2py] Re: how to get MySQLdb working with web2py source distribution?

2010-03-14 Thread Igor Gassko
I tried using this one earlier in order to install MySQL driver from sources distribution (version 1.2.3c1), but it crashed during the install (all sorts of build errors, I didn't figure what went worng). I hate black magic, so out-of-box package seems to be optimal solution in this case (otherwise

[web2py] Re: how to get MySQLdb working with web2py source distribution?

2010-03-14 Thread Igor Gassko
It did help :-) I've installed MySQL-python-1.2.3c1.win-amd64-py2.6.exe distro, and it worked right away. It's a shame they don't have those packages at project's site at sourceforge! Thanks a lot! On Mar 14, 12:03 am, "mr.freeze" wrote: > This might > help:http://stackoverflow.com/questions/645

[web2py] Re: Where do you use web2py?

2010-03-14 Thread stefaan
> > This day I'd like to focus myself on the question: for which projects do > you use web2py? > I use web2py in a web front-end to display and analyze the results of nightly software regression tests and application specific software metrics at my work place. So far, using web2py has been nothin

[web2py] Re: sudoku web2py - for fun

2010-03-14 Thread Magnitus
Well, it seems to be fashionable nowadays, My father made one in Java ><. On Mar 10, 10:42 pm, mdipierro wrote: > http://web2py.com/sudoku -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroup

[web2py] Re: Where do you use web2py?

2010-03-14 Thread Magnitus
>I'm also using web2py to handle the server-side portions of a turn-based >multiplayer game I'm working on. Same here, well, part of the server-side portion anyways. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send e

[web2py] Re: Using the Template System to Generate Emails

2010-03-14 Thread DenesL
On Mar 14, 4:18 am, annet wrote: > Hi Denes, > > This send_mail function works: > > def send_mail(): > > nfas=db(db.nfa.nfatype==4).select(db.nfa.ALL,orderby=db.nfa.bedrijf) >     for nfa in nfas: >         context=dict(nfa=nfa) >         message=response.render('clublocatormail/ > send_mail.htm

[web2py] Re: Using the Template System to Generate Emails

2010-03-14 Thread annet
Hi Denes, This send_mail function works: def send_mail(): nfas=db(db.nfa.nfatype==4).select(db.nfa.ALL,orderby=db.nfa.bedrijf) for nfa in nfas: context=dict(nfa=nfa) message=response.render('clublocatormail/ send_mail.html',context) recipient=nfa.adres mail.s

[web2py] [closed] Re: errorless ajax bugs - how to prevent?

2010-03-14 Thread snfctech
You're right. The example I gave isn't holding up anymore! (I swear, I didn't change my code since my last post!) I'm getting tickets in firebug for f3() not being defined - which makes sense. (Btw, I find it easier to click the most recent ticket from the "error" menu in a pre-existing ticket t

[web2py] Re: web2py beautification

2010-03-14 Thread mdipierro
Ideally if we could make the welcome app use or at leat friendly with http://jqueryui.com/themeroller/ it would be nice. On Mar 13, 9:35 pm, villas wrote: > On Mar 13, 4:05 pm, Mengu wrote: > > > i still recommend oocss as css framework. a lot easier, a lot better. > > @Aure. > Sencss. Good styl