how and where do I apply this to the default auth_user table since I
am using the default auth stuff and never see the table def in my
code?
On Sep 17, 5:54 pm, mdipierro wrote:
> requires=IS_LOWER(),IS_EMAIL()
>
> On Sep 17, 4:40 pm, "david.waldrop" wrote:
>
>
>
> > is there an easy way to forc
Does anyone have a suggestion for how to implement a tooltip/rollover
capability when using custom forms like below:
Meeting Name:
{{form.element('input',_name='name')['_size']=50}}
{{=form.custom.widget.name}}
Password:
{{=form.custom.widget.password}}
{{=form.custom.label['password']}}
St
Thanks massimo :)
May I ask you a couple of things:
1- You have putted in the cvs only the application/folder folder, while I'm
used to put the whole web2py, in this way I can have in it routes.py,
app.yaml etc... how do you handle these files, in your system?
2- IIRC, you told us, about a month ag
Hi,
I'd like to always call a function as the very last bit of application
code for every request/response. Is there an existing callback
mechanism I can hook into or is wsgi middleware perhaps the way to
go?
Regards,
HC
i was unable to install thru my admin interface. running web2py
Version 1.82.1 (2010-08-05 01:00:12)
On Sep 18, 2:12 am, mdipierro wrote:
> http://code.google.com/p/conf2py/
>
> can you try run it and check if you run into any setup/intallation
> issues?
I added the requires to the default default/user controller and
confirmed that no matter the case of the registration email it is
converted to lower case in the database. What I am not sure how to do
is to take the email the user enters at login and convert it to
lowercase. Roght now if I registe
Hi David,
somehow, doesn't look pretty but this works.
def email_to_lower(form):
form.vars.email = form.vars.email.lower()
auth.settings.login_onvalidation = email_to_lower
I guess the login form should not be case sensitive. (Or should it,
Massimo?)
Regards,
HC
Hi,
I could call the function from layout.html but it is a plugin and it
should work standalone.
Some background - in case I'm on the wrong track or PluginManager is
about to handle it.
The site I am working on consists mainly of plugins (I'm inflicted
with raving mad plugin fever), some of whic
def horizontal_radios(f,v):
table = SQLFORM.widgets.radio.widget(f,v)
rows=table.elements('tr')
table.components = []
table.append([row.elements('td') for row in rows])
return table
def form():
form=SQLFORM.factory(
Field('clientagent', requires=I
Great!
On Sep 18, 3:12 am, mdipierro wrote:
> http://code.google.com/p/conf2py/
>
> can you try run it and check if you run into any setup/intallation
> issues?
I am currently running web2py Version 1.82.1 (2010-08-05 01:00:12) on
Windows 7.
when i try to upgrade I get the following error
unable to upgrade because "[Errno 13] Permission denied: 'C:\\Users\
\david\\My Projects\\Miscelaneous\\MeetingMonkey\\web2py/_mysql.pyd
I made sure all apps were close
yes, the third columns is form Field(...comment='')
On Sep 18, 5:47 am, Julius Minka wrote:
> def horizontal_radios(f,v):
> table = SQLFORM.widgets.radio.widget(f,v)
> rows=table.elements('tr')
> table.components = []
> table.append([row.elements('td') for row in r
requires 1.85.3
On Sep 18, 3:53 am, "david.waldrop" wrote:
> i was unable to install thru my admin interface. running web2py
> Version 1.82.1 (2010-08-05 01:00:12)
>
> On Sep 18, 2:12 am, mdipierro wrote:
>
> >http://code.google.com/p/conf2py/
>
> > can you try run it and check if you run into
ahh. then its related to my other post about the upgrade no working.
when i try to upgrade I get the following error
unable to upgrade because "[Errno 13] Permission denied: 'C:\\Users\
\david\\My Projects\\Miscelaneous\\MeetingMonkey\\web2py/_mysql.pyd
On Sep 18, 10:35 am, mdipierro wrote:
>
I think you need to upgrade manually (unzip new web2py over old
web2py).
This is a known windows problem.
On Sep 18, 10:13 am, "david.waldrop" wrote:
> ahh. then its related to my other post about the upgrade no working.
>
> when i try to upgrade I get the following error
> unable to upgrade bec
cool
On Sep 18, 11:33 am, mdipierro wrote:
> I think you need to upgrade manually (unzip new web2py over old
> web2py).
> This is a known windows problem.
>
> On Sep 18, 10:13 am, "david.waldrop" wrote:
>
>
>
> > ahh. then its related to my other post about the upgrade no working.
>
> > when i
Question: how to call HiddenField outside of define_table, as in the
controller? I find that usually, when I hide field, it's because I'm
uniting 2 tables in 1 form and I want to selectively populate fields
in each table, but ultimately, all fields in the tables will be
populated via forms. So I am
Hi,
I'm try deploy my web2py application in GAE, but it return this
exception :
raceback (most recent call last):
File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
gluon/restricted.py", line 188, in restricted
exec ccode in environment
File "/home/kirotawa/Documentos/Pro
This may be to the facts that on GAE tables are not created until you
insert a record in them.
On Sep 18, 10:55 am, "leo (kirotawa)" wrote:
> Hi,
>
> I'm try deploy my web2py application in GAE, but it return this
> exception :
>
> raceback (most recent call last):
> File "/home/kirotawa/Docum
On Sep 17, 2010, at 11:50 PM, Avik Basu wrote:
>
> There is nowhere I can see that I am altering request in the models.
> What is the specific reason that request would break the URL
> function? Any other ideas what the problem could be?
The URL function requires, at a minimum, app, controller a
How to add a record with crud.create with a hidden form field
(Orderid) and a value (taken from variable orderid within controller).
model:
db.define_table("workingtime",
Field("StartTime","datetime",default=datetime.datetime.today()),
Field("EndTime","datetime",default=""),
Fiel
Very nice!
On Sep 18, 1:33 am, mdipierro wrote:
> Conf2py is an Open Source Conference Management Software written in
> Python
>
> License is GPL2
> Developed by Massimo Di Pierro
> Support provided by MetaCryption LLC
>
> A slideshow presentation:
>
> http://www.slideshare.net/mdipierro/conf2py
Sure, I'm happy to help debug. Send me the print statements when you
get a chance.
Avik
On Sep 18, 12:39 pm, Jonathan Lundell wrote:
> On Sep 17, 2010, at 11:50 PM, Avik Basu wrote:
>
>
>
> > There is nowhere I can see that I am altering request in the models.
> > What is the specific reason tha
Hi Just came across "plugin_google_checkout" in the mailing list. Want to
know if this works!
Wow! that is one delicious application :) And role based
functionality to boot! So, let's see... roles (fully configurable),
secure, rich media content is already an integrated feature in web2py
(flash, and now pdf (which will undoubtedly grow to include some sort
of forms architecture, etc.)),
yes, it was used for PyCon 2009 and 2010 payments without any issue.
On Sep 18, 11:48 am, bally boy wrote:
> Hi Just came across "plugin_google_checkout" in the mailing list. Want to
> know if this works!
No, I try insert in the table and after select the content but it
raise up the same exception.
I created a service insert, put the content, it's work fine, but in
the of select it show a error message.
On 18 set, 13:19, mdipierro wrote:
> This may be to the facts that on GAE tables are not crea
Anything for paypal.. looks like google checkout is only for US and UK.. or
any other options for setting up a store and the payment mechanism I
know I might be bugging at times!
On Sat, Sep 18, 2010 at 10:21 PM, mdipierro wrote:
> yes, it was used for PyCon 2009 and 2010 payments without an
On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>
> Sure, I'm happy to help debug. Send me the print statements when you
> get a chance.
Here's a starting point. In gluon/html.py, you'll find this:
if not (application and controller and function):
raise SyntaxError, 'not enough inform
I saw here, and the table was create in GAE with insert service, but
when I get a select service its fails.
On 18 set, 13:19, mdipierro wrote:
> This may be to the facts that on GAE tables are not created until you
> insert a record in them.
>
> On Sep 18, 10:55 am, "leo (kirotawa)" wrote:
>
>
>
Hi again,
seem now it work fine, was like you tell me Massimo.
Thanks a lot for all help ;]
On 18 set, 14:20, "leo (kirotawa)" wrote:
> I saw here, and the table was create in GAE with insert service, but
> when I get a select service its fails.
>
> On 18 set, 13:19, mdipierro wrote:
>
>
>
>
>
On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>
> Sure, I'm happy to help debug. Send me the print statements when you
> get a chance.
FWIW, I just did the same thing (move the current appadmin into my own app) and
it seems to work OK; at least I can access appadmin/index OK.
When I replace the code in gluon/html.py, I still keep getting the
same SyntaxError ('not enough information to build the url') which
seems strange since that is not even in the code anymore.
I am sort of new to debugging the gluon code so I maybe making some
simple mistake. I did delete the htm
On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>
> When I replace the code in gluon/html.py, I still keep getting the
> same SyntaxError ('not enough information to build the url') which
> seems strange since that is not even in the code anymore.
>
> I am sort of new to debugging the gluon code s
After restarting the server, I get the following error:
SyntaxError: URL: a=index c=None f=None r=None
On Sep 18, 2:46 pm, Jonathan Lundell wrote:
> On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>
>
>
> > When I replace the code in gluon/html.py, I still keep getting the
> > same SyntaxError ('
I am sorry, I couldn't get it running.
New web2py install.
Installed the app..
Installed the plugin...
Now it gives me the error:
AttributeError: PluginWiki instance has no attribute 'embed'
Any ideas?
---
Best Regards,
Jason Brower
On 09/18/2010 07:43 PM, mr.freeze wrote:
Very nice!
On Sep 18,
On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
>
> After restarting the server, I get the following error:
>
> SyntaxError: URL: a=index c=None f=None r=None
I was afraid of that, and I can't explain it.
Please check that line 219 of gluon/compileapp.py is:
environment['URL'] = html._gURL(
This is strange. It as if you have an old plugin_wiki installed
instead of the one that cones with conf2py (a new and modified one).
Did you re-install plugin_wiki on top of conf2py?
Massimo
On Sep 18, 2:20 pm, Jason Brower wrote:
> I am sorry, I couldn't get it running.
> New web2py install.
>
Thanks to H. Das and Albert Abril for testing oauth.
I made some fixes/improvements:
- correct support for https://
- login_next working
- converted almost all outgoing requests to POST
- fixed broken callback_url handling
- support for optional query parameters in requests for oauth2.0
(i.e.
Line 219 of gluon/compileapp.py is as you described it. I also deleted
the whole gluon directory and downloaded the latest source of web2py
before restarting the server. Also, as far as I can tell, I am not
doing anything tricky with Globals or the URL symbol in my models.
I now get the following
Could you please be more specific? I am sorry to say I don' understand
your response.
Julius
V Sobota, 18. september 2010 o 07:34 -0700, mdipierro napísal(a):
> yes, the third columns is form Field(...comment='')
>
> On Sep 18, 5:47 am, Julius Minka wrote:
> > def horizontal_radios(f,v):
> >
Hehe... yeah I did install the plugin wiki over the old one... I just
assumed it was needed and installed it. Sorry, I will try again
tomorrow and get it working them.
BR,
Jason Brower
On 09/18/2010 10:47 PM, mdipierro wrote:
This is strange. It as if you have an old plugin_wiki installed
ins
never do that because apps always come with the plugins they need and
sometimes I modify them. I will post this one latest one as the
official one. I allows embedding wiky pages into other pages.
On Sep 18, 3:00 pm, Jason Brower wrote:
> Hehe... yeah I did install the plugin wiki over the old on
http://www.i-freelancer.org/php/ad-hoc-scripting-tasks-odesk/
(I do not know who posted)
On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
>
> Line 219 of gluon/compileapp.py is as you described it. I also deleted
> the whole gluon directory and downloaded the latest source of web2py
> before restarting the server. Also, as far as I can tell, I am not
> doing anything tricky with Global
do i need to import logging?
On Sep 18, 4:10 pm, Jonathan Lundell wrote:
> On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
>
>
>
> > Line 219 of gluon/compileapp.py is as you described it. I also deleted
> > the whole gluon directory and downloaded the latest source of web2py
> > before restarting
Trying to deploy web2py app in the Virtual Server with Debian installed
using
http://bazaar.launchpad.net/~mdipierro/web2py/devel/download/head:/setupweb2pyubuntu.sh-20091113071543-nuyvk7g9cfu086wk-1/setup-web2py-ubuntu.sh
results in this error:
Error traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
I put this:
{{=URL.__name__}}
in the view of my index page and it showed
URL
(not _URL as you said)
Also, I don't know if its helpful to mention that the latest format
for the URL function is not working anywhere in my app, not just in
appadmin. So, if I put:
{{=URL('index')}}
in my index pa
On Sep 18, 2010, at 1:12 PM, Avik Basu wrote:
>
> do i need to import logging?
Yes. But sticking it in your view is fine, I think.
>
> On Sep 18, 4:10 pm, Jonathan Lundell wrote:
>> On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
>>
>>
>>
>>> Line 219 of gluon/compileapp.py is as you describ
Massimo, any ideas?
On Sep 18, 2010, at 1:24 PM, Avik Basu wrote:
>
> I put this:
> {{=URL.__name__}}
>
> in the view of my index page and it showed
> URL
>
> (not _URL as you said)
>
>
> Also, I don't know if its helpful to mention that the latest format
> for the URL function is not working
I do not know but ...
Not all modules can go in the modules folder. Some of them exepect to
be in sys.path
On Sep 18, 3:18 pm, Julius Minka wrote:
> Trying to deploy web2py app in the Virtual Server with Debian installed
> usinghttp://bazaar.launchpad.net/~mdipierro/web2py/devel/download/head:/se
It works locally, the error occurs only on the server.
V Sobota, 18. september 2010 o 14:46 -0700, mdipierro napísal(a):
> I do not know but ...
> Not all modules can go in the modules folder. Some of them exepect to
> be in sys.path
>
> On Sep 18, 3:18 pm, Julius Minka wrote:
> > Trying to depl
Hello,
I think I got a bit trapped by DAL in GAE :)
maybe because of often used db.MyTable[i].somefield
/default/topic_examples/27001/view 200 2721ms 5145cpu_ms
2906api_cpu_ms
service.call#RPCs real time api time
datastore_v3.Get62 712ms 516ms
datastore_v3.RunQuery
Something like that is there:
expiration=3600 # seconds
rows=db(...).select(...,cache=(cache.ram,expiration))
reset with
rows=db(...).select(...,cache=(cache.ram,0))
On Sep 18, 5:27 pm, Jurgis Pralgauskis
wrote:
> Hello,
>
> I think I got a bit trapped by DAL in GAE :)
> maybe because of ofte
would it be sound to use some cache_db instead of memcache in GAE
then?
For example if I render a CPU requiring view I want to cache,
but I could clear it anytime I like.
hm, or could there be a recipy to abandon current memcached object.
this would need extra hash table:
as if now probably is s
I tried the following command in both my app (where URL) and the
welcome app (where URL does not fail):
{{=gluon.html._gURL(request).__name__}}
and the result for both apps was:
_URL
Does that provide any clues?
On Sep 18, 5:03 pm, Jonathan Lundell wrote:
> Massimo, any ideas?
>
> On Sep 18,
On Sep 18, 2010, at 2:46 PM, mdipierro wrote:
>
> Not all modules can go in the modules folder. Some of them exepect to
> be in sys.path
There's a variety of sys.path editing in web2py, but I think it's not entirely
consistent.
is there a __init__.py in modules?
2010/9/19 Jonathan Lundell :
> On Sep 18, 2010, at 2:46 PM, mdipierro wrote:
>>
>> Not all modules can go in the modules folder. Some of them exepect to
>> be in sys.path
>
> There's a variety of sys.path editing in web2py, but I think it's not
> entirely consi
On Sep 18, 2010, at 3:46 PM, Avik Basu wrote:
>
> I tried the following command in both my app (where URL) and the
> welcome app (where URL does not fail):
>
> {{=gluon.html._gURL(request).__name__}}
>
> and the result for both apps was:
>
> _URL
>
> Does that provide any clues?
It verifies t
I should also mention that if I were able to reproduce the problem here, I'd
look at it with a debugger, watching URL in the global namespace of a request.
So if that's a possibility
I tried your suggestion and tracked the error to the following line
which was in my db.py:
from gluon.sqlhtml import *
I guess this import overrided the URL function. When I took it out,
everything works. Thanks so much for your patience and helping me get
through this issue so methodically! T
On Sep 18, 2010, at 4:58 PM, Avik Basu wrote:
>
> I tried your suggestion and tracked the error to the following line
> which was in my db.py:
>
> from gluon.sqlhtml import *
Ah, that's good to put to rest.
sqlhtml does from html import *
I guess they must all end up in the namespace. It doesn
{{=form.custom.comment.field_name}} will have the comment that you
defined in the table definition.
Perhaps check out qTip (http://craigsworks.com/projects/qtip/) for a
way to create & trigger the tooltips.
In your view you can do:
{{=form.custom.label.field_name}}:
{{=form.custom.widget.field_
at first I thought, I need this "caching" **per request**,
but maybe this would not be the problem to set it for several seconds
or even minutes
A)
if I want to use **dict[key]** notation (for clear'er code),
I could do like this:
for row in db(...).select(...,cache=(cache.ram,expiration))::
Even as I was writing my last reply, I was steadily coming up with
more reasons for sticking with Google Groups and not moving to Stack
Overflow. It seems I find my own previous arguments a bit
underwhelming.
I'd still like to see something similar to SO written in web2py. I'd
like to get around
I think we need a cache.request that works per perquest. I will
implement it in a couple of days.
On Sep 18, 9:06 pm, Jurgis Pralgauskis
wrote:
> at first I thought, I need this "caching" **per request**,
> but maybe this would not be the problem to set it for several seconds
> or even minutes
I have a table with an upload field declared with autodelete=True. The
upload file is not really uploaded, it's created on the fly. The table
id is referenced by a queue, which is polled to determine whether or
not the upload file needs to be created. Once created, the queue entry
is deleted. This
I had issues with extended_login_form
Line 89, "request = self.auth.environment.request", was throwing an
exception. Since the example was passing in request it seemed weird
it wasn't being used. So I changed init
def __init__(self,
request,
auth,
I agree!
On Sun, Sep 19, 2010 at 7:40 AM, Michael Wolfe <
michael.joseph.wo...@gmail.com> wrote:
> Even as I was writing my last reply, I was steadily coming up with
> more reasons for sticking with Google Groups and not moving to Stack
> Overflow. It seems I find my own previous arguments a bit
Hi Pierro,
About the polymodel, I think that it may have an equivalence in SQL. I
know pgsql has inheritance feature for its tables.
http://www.postgresql.org/docs/8.1/static/ddl-inherit.html
Would it be similar to polymodel?
On Sep 3, 2:07 am, mdipierro wrote:
> I agree thatpolymodelwould be tr
Can you show us the table in question and the queue table?
On Sep 18, 10:59 pm, weheh wrote:
> I have a table with an upload field declared with autodelete=True. The
> upload file is not really uploaded, it's created on the fly. The table
> id is referenced by a queue, which is polled to determin
This group I can manage and there are lots of skilled people here. I
can definitively use more support outside this group. I would be happy
to use something custom made instead of the group but I would need
some assurance that it is maintained professionally, long term, and
disaster recovery plan i
Looks the same. We could add support for it but I think it is a
PostgreSQL specific feature.
Massimo
On Sep 18, 7:38 pm, Alvin SW wrote:
> Hi Pierro,
>
> About the polymodel, I think that it may have an equivalence in SQL. I
> know pgsql has inheritance feature for its
> tables.http://www.postg
Hi,
Just checking to see if maybe the plugin location has changed?
anyways, the link doesn't bring down the the plug-in.
Thanks
Mart :)
We really need to get our own job networking system. Those sites are
garbage. I got so sick of the PAGES of forms that I gave up and
canceled the account just after starting it. There are simpler and
better ways. He could have just posted here too. :D
---
BR,
Jason Brower
On 09/18/2010 11:10
The first time I tried installing it my version of web2py was too low.
We should have a feature to check version if they are there.
BR,
Jason
On 09/18/2010 11:04 PM, mdipierro wrote:
never do that because apps always come with the plugins they need and
sometimes I modify them. I will post this
76 matches
Mail list logo