[web2py] Re: app structural question

2011-04-02 Thread mart
alright, now I had to look... so it as a cooking conference app (emphasis on conference) where it does indeed have elements of workflow (as pbreit mentions based on roles and authentication) and is actually interesting when looking at that aspect specifically. (although I don't know that there real

[web2py] Hostname of server?

2011-04-02 Thread pbreit
I'm having a surprisingly difficult time figuring out a good way to identify the hostname of the server that is running a background process. If it was a front-end thing, I could just use "request.env.http_host" or something. However, since it's a background process, there is no request (or real

[web2py] jquery mobile, google maps and routes.py

2011-04-02 Thread ChrisM
i am using the examples from; I have a incoming request at http://localhost:8000/#/init/default/map_geoloc in routes.py i have: routes_in = ((r'.*:/favicon.ico', r'/examples/static/favicon.ico'), (r'.*:/robots.txt', r'/examples/static/robots.txt'), (r'.*:/#/init/defau

[web2py] Invitation to connect on LinkedIn

2011-04-02 Thread Sarados saradopoulos
LinkedIn I'd like to add you to my professional network on LinkedIn. - Sarados Sarados saradopoulos manager at eVoice Greece Confirm that you know Sarados saradopoulos https://www.linkedin.com/e/-tce7hj-gm0hu7d3-58/isd/2621923828/9x3FJYLl/ -- (c) 2011, LinkedIn Corporatio

Re: [web2py] Re: GAE 1.4.3 has support for mysql and sqlite?

2011-04-02 Thread Shishir Ramam
From: https://groups.google.com/forum/#!topic/google-mysql-tools/Bc7P5SIRCVE/discussion [This message is being sent to the google-mysql-tools Google group, which has been inactive for a very long time. If you no lon

[web2py] RBAC and chat system

2011-04-02 Thread RAMKRISHAN BHATT BACK IN ACTION in bangalore
HI i am new in web2py. i developing student management system where these are the major functionality. 1. admin only can register for other admin people and student group. 2. only login url will be there by default. 3. after login if admin than registration url suppose to there f

[web2py] cannot import name DateTime

2011-04-02 Thread villas
I'm using latest trunk with Ubuntu 8 and Apache. I'm trying to connect to Firebird but get this... -- Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment

[web2py] Re: Hostname of server?

2011-04-02 Thread VP
How about this: import os os.system("hostname") On Apr 2, 2:41 am, pbreit wrote: > I'm having a surprisingly difficult time figuring out a good way to identify > the hostname of the server that is running a background process. If it was a > front-end thing, I could just use "request.env.http_

[web2py] Re: RBAC and chat system

2011-04-02 Thread Massimo Di Pierro
Register yourself You can then disable registration via: auth.settings.actions_disabled.append('register') You can register other people via appadmin or make your own action @auth.requires_memmebership('administrator') def register(): return dict(form=crud.create(db.auth_user)) Once

[web2py] Re: GAE 1.4.3 has support for mysql and sqlite?

2011-04-02 Thread Massimo Di Pierro
I guess this partially releases me from the Non Disclosure Agreement. I have been testing this since December under contract with Google. I have a web2py version that runs on GAE with MySQL. It supports MySQL and the Datastore at the same time. Automatic migrations work too. I will release it as

[web2py] Re: cannot import name DateTime

2011-04-02 Thread ron_m
Something is odd, looking at your traceback dal.py line 3357 in my copy of trunk updated a minute ago is in the last line of the initializer code for ADAPTERS

[web2py] {{=plugin_wiki.embed()}} ?

2011-04-02 Thread mart
Hi Massimo, There's no rush here ;) I was looking at you conference app (there was a thread on workflow) and saw this {{=plugin_wiki.embed()}} def embed(): isn't part of plugin_wiki, so decided to give it a try (i think I followed what you had, but isn't seeing that method... I didn't realize th

[web2py] reCaptcha in forms

2011-04-02 Thread elffikk
how to use reCaptcha in other form then authorization forms? is it possible or do I need to implement that? please help

[web2py] Re: Hostname of server?

2011-04-02 Thread pbreit
Yeah, I guess I'll go that route. Although it looks like the Python doc prefers socket.gethostname() The problem I run in to is that this requires that I set /etc/hostname to "www.mysite.com", "qa.mysite.com" whereas I had understood that the hostname is typically just "www", "qa", etc. Not a b

[web2py] Re: cannot import name DateTime

2011-04-02 Thread villas
The problem is with my Ubuntu 8.04 server with Python 2.5. I tried with Ubuntu 10 with Python 2.65 and everything seemed OK. I haven't tested everything yet, but maybe that gives a clue? Where is this error coming from: "cannot import name DateTime"? Is it from the Kinterbasdb package or someth

[web2py] Help need on links

2011-04-02 Thread Pystar
I have a web page, where I have swiped out the base.css file, included my own css file and also the blue print css framework. Whenever I create a link using "" or the A helper, I get a link with the href value in parenthesis by it. Example code: {{=A("hello", _href=URL(r=request, f='index'))}} i

Re: [web2py] Help need on links

2011-04-02 Thread Vasile Ermicioi
I get http://localhost:8000/vs/default/index> ">hello which looks fine, I use latest web2py version

[web2py] Re: Help need on links

2011-04-02 Thread Pystar
I suspect the CSS framework I am using i.e. Blueprint, not sure. On Apr 2, 9:47 pm, Vasile Ermicioi wrote: > I get http://localhost:8000/vs/default/index> > ">hello which looks fine, > I use latest web2py version

[web2py] Re: GAE 1.4.3 has support for mysql and sqlite?

2011-04-02 Thread Carl
As you're replying to this on April 2nd I guess it's not an AFool :) Excellent news for the Web2py platform; I look forward to the full story in due course. On Apr 2, 4:47 pm, Massimo Di Pierro wrote: > I guess this partially releases me from the Non Disclosure Agreement. > > I have been testin

[web2py] Re: Help need on links

2011-04-02 Thread pbreit
Seems unlikely that CSS could cause that problem. Shouldn't make a difference but you could try: {{=A('hello', _href=URL(c='default', f='index'))}} To figure out if the CSS is to blame, if you are on Chrome or Safari, right-click on the text and select "Inspect Element" (or use Firebug on Firef

[web2py] Re: Help need on links

2011-04-02 Thread Pystar
@pbreit Links work ok in a fresh app like "welcome" since the CSS framework is only in the static/css folder of the app in question On Apr 2, 10:06 pm, pbreit wrote: > Seems unlikely that CSS could cause that problem. > > Shouldn't make a difference but you could try: > {{=A('hello', _href=URL(c=

[web2py] Function is evaluated twice?

2011-04-02 Thread Serbitar
I have the controller: @auth.requires_login() def roll(): if request.args(0): step = int(request.args(0)) else: return dict(message = "Roll it!") if request.args(1): visible = False else: visible = True result = util.roll_step(step) db.live.i

[web2py] Re: auth.add_group

2011-04-02 Thread Christopher Steel
automated application initialization... Automating application setup tasks is something we should probably do more of in keeping with the Web2py "zero configuration" spirit. Seeing your discussions here inspired me in my quest towards an eventual config and/or application setup logging system of s

[web2py] Plugin-wiki tagging question

2011-04-02 Thread skwasha
Is there anyway to take advantage of the plugin-wiki tagging widget at object creation (i.e., assign tags to a record as part of it's submission)? Or do I just need to implement my own? TIA

[web2py] Re: {{=plugin_wiki.embed()}} ?

2011-04-02 Thread Massimo Di Pierro
It is not {{=plugin_wiki.embed('widget_name',)}} it is {{=plugin_wiki.widget('widget_name',)}} # to embed a widget or {{=plugin_wiki.render()}} # to embed a page On Apr 2, 2:20 pm, mart wrote: > Hi Massimo, > > There's no rush here ;) I was looking at you conference app (there w

[web2py] Re: reCaptcha in forms

2011-04-02 Thread Massimo Di Pierro
You do not need to implement it. You can do: form=FORM(..., Recaptcha(request,public_key,private_key),...) or form.element(...).append(Recaptcha(request,public_key,private_key)) On Apr 2, 2:33 pm, elffikk wrote: > how to use reCaptcha in other form then authorization forms? > is it possible

[web2py] Re: GAE 1.4.3 has support for mysql and sqlite?

2011-04-02 Thread Massimo Di Pierro
This is not a an April's Fool but I cannot say much more yet. On Apr 2, 4:03 pm, Carl wrote: > As you're replying to this on April 2nd I guess it's not an AFool :) > > Excellent news for the Web2py platform; I look forward to the full > story in due course. > > On Apr 2, 4:47 pm, Massimo Di Pierr

[web2py] Re: Function is evaluated twice?

2011-04-02 Thread Massimo Di Pierro
Add a print statement. You find that the function is being called twice. A broken link in the page like make cause that. Mind that a function that inserts without a form posting is vulnerable to URL redirection attacks. On Apr 2, 4:55 pm, Serbitar wrote: > I have the controller: > > @auth.req

[web2py] Re: Plugin-wiki tagging question

2011-04-02 Thread Massimo Di Pierro
you can do: def tag_record(table,id,tag): db_tag = table.db.plugin_wiki_tag db_link = table.db.plugin_wiki_link tag_name = re.compile('\s+').sub(' ',tag).strip() tag = db(db_tag.name==tag_name).select().first() if not tag: tag = db_tag.insert(name=tag_name, links=1)

[web2py] web shell says admin disabled because unable to access password file

2011-04-02 Thread CVstash dot com
When I try to access http://localhost:8000/admin/shell I get: admin disabled because unable to access password file I looked around and tried to copy parameters_8000.py to parameters_80.py and parameters_443.py but no effect. I'm trying to run shell properly because I with to work with pyfpdf, wh

[web2py] Re: web shell says admin disabled because unable to access password file

2011-04-02 Thread CVstash dot com
PS - the whole effort was in order to be able to generate pdf files from database entities under GAE. I tried https://github.com/lucasdavila/plugin-appreport/wiki/Docs-and-examples but it has to write off the filesystem so I went with pyfpdf instead. Regards, Arbie On Apr 3, 11:38 am, CVstash do

Re: [web2py] Re: reCaptcha in forms

2011-04-02 Thread Vasile Ermicioi
ok, thank you Massimo, your support is outstanding