Thanks for the replies guys. I started off with pbreit's snippet:
http://groups.google.com/group/web2py/browse_thread/thread/6cc84d9fb609e74/cdb0d848ed691e40?q=paypal+pbreit#cdb0d848ed691e40
First I ran into a problem in which paypal is saying I'm not
authorized to make the api call. Some googling
Hi Luis,
I am not sure I understand your question correctly, but as far as I
know default/user/profile is based on the auth_user table, to which
you can add any field you want e.g.
# Custom Auth table definition
db.define_table(auth.settings.table_user_name,
Field('username', length=20, uniq
Hello Everyone!
How do I modify default/user/profile to use my own form (where the profile
contains more information)?
I think it should be easy, but I haven't found any info or an example yet.
Thanks in advance!!!
Luis.
Hello!
I'm building an application where logged-in users can send messages to
each other (the message gets sent to the recipient's normal email, and
they use a link to come back to the site and reply).
I want a page (ie, controller, view, (and model)) that allows the user
to see the messages sent
No misunderstanding on my part. I think it is great you are doing this
and I hope to see some great results. Perhaps in a year you may even
switch to mine. :D
---
BR,
Jason
On 05/29/2011 12:14 AM, Mariano Reingart wrote:
Jason:
I did want to announce the project status, maybe it is useful to
If your using dreamhost then you should vote here!
https://panel.dreamhost.com/index.cgi?tree=home.sugg&category=_all&search=One%20click%20install%20We
BR,
Jason Brower
Things that I was testing and I can remember is:
0. Test example codes in the book to unsure it keep working with newest
version.
1. new DAL and the newest features added.
2. new router.
3. new custom importer.
4. new thread locals current object.
5. security changes in generic views.
6. auth.extr
I use 2.6 and it still works.
Occasionally I get that error, but works again later. Must be a temporary
problem with upload service.
Hey guys,
I had volunteered to help in documentation.
In your oppinion, what would be the top priority to work on?
--
Vinicius Assef.
Hi every one!!!
I was wondering if is possible to deploy an app using GAE but taking
data from a MySQL server, for example
I have a free account at 000webhost with MySQL DB and I'd like to use
GAE just as a hosting service and connect to my 000webhost DB.
Is it possible??? if not, any suggestion
def user():
if request.args(0)=='profile':
db.auth_user.username.readable = db.auth_user.username.writable =
False
return dict(form=auth())
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Sat, May 28, 2011 at 11:28 PM, Bruno Rocha wrote:
> You have to do that in t
You have to do that in the controller, not in view.
{{=form}} is already builded in the controller, so if you define 'readable'
in view it will not effect the already created object.
Go to controllers/deafult.py and in 'def user()' include the piece of code.
--
Bruno Rocha
[ About me: http://zerp
I've tried:
{{extend 'layout.html'}}
{{=T( request.args(0).replace('_',' ').capitalize() )}}
{{if request.args(0)=='profile':}}
{{db.auth_user.username.readable = False}}
{{db.auth_user.username.writable = False}}
{{pass}}
{{=form}}
Didn't work... what am I doing wrong here?
On Sat, May 28, 20
Good point!
Thanks!
On Sat, May 28, 2011 at 9:46 PM, pbreit wrote:
> You can set it in the controller. Something like if
> request.args(0)=='profile': in the user() function
--
Linux User #387870
.
_/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___
Seems OK now. Thanks!
On May 28, 5:41 pm, Massimo Di Pierro
wrote:
> check now, please
>
> On May 28, 11:35 am, Massimo Di Pierro
> wrote:
>
> > It is a bug. should work. I will fix it later today
>
> > On May 28, 11:25 am, villas wrote:
>
> > > Hi Massimo
>
> > > I tried that. I have this in
Ok, thanks. Does it end up that many/most functions are programmed to handle
either a string or tuple?
You can set it in the controller. Something like if request.args(0)=='profile':
in the user() function
If the project owner doesn't want to turn over ownership I suspect you'll need
to continue on with the fork. Perhaps he'd at least include a link to your fork
on the home page.
Ok, but if I set it as readable and writable false it will disappear during
the registration ;)
On Sat, May 28, 2011 at 6:27 PM, contatogilson...@gmail.com <
contatogilson...@gmail.com> wrote:
> Yes, it is more a field to be edited. What you can do is hide this field in
> the actionprofile like t
On Sat, May 28, 2011 at 9:13 PM, pbreit wrote:
> In python do you have to include the comma in a one item tuple?
Yes, one item tuple needs extra comma.
>>> t = (1)
>>> type(t)
>>> t= (1,)
>>>type(t)
In python do you have to include the comma in a one item tuple?
Express Checkout doesn't need the crypto stuff.
And the crypto stuff is actually optional on PayPal "_cart" and "_xclick". Just
make sure to review your payments visually or with IPN to make sure there was
no tampering.
My mistake:
max_id = db(db.table).select(db.table.id.max()).first()
[db.table.id.max()]
and
db(db.table.id==max_id).update(field='avariable')
On May 28, 10:23 am, Massimo Di Pierro
wrote:
> max_id = db(db.table).select(db.table.id.max())
> and
> db(db.table.id==max_id).update(field='avariable')
I posted the issue at paypal:
https://www.x.com/thread/52494?tstart=0
On 5月29日, 午前7:02, howesc wrote:
> i tried to get my implementation (slice 106) to work on app engine, but
> could not find a way to properly sign the requests using the pycrypto
> library that GAE provides. you get a gold sta
This is fixed in trunk.
You cannot do
from gluon import *
in version before 1.95.1
On May 28, 3:44 pm, dlypka wrote:
> I am trying to use crud but I get
>
> TypeError: 'module' object is not callable
> when I reference
> globals() in
>
> crud = Crud(globals(), mydb)
>
> At the top of my s
Docs are wrong but we can make this work.
I just made a change to trunk to fix that particular error. Please try
again, there may be other errors related to this.
On May 28, 3:30 pm, Rip Ryness wrote:
> This syntax:
> Field('list_tags',type=gae.StringListProperty(),widget=str_list.widget),
>
> C
If you are not using trunk, can you try trunk?
On May 28, 3:25 pm, "Sebastian E. Ovide"
wrote:
> Hi All,
>
> I'm trying to use the ajax_trap funcs. but I'm getting JS errors and
> therefore the traps are not working meither for the forms nor for the links:
>
> In firebug I'm getting this error:
>
Anyway, I think this is now fixed in trunk. Please check it and let me
know.
On May 28, 2:45 pm, "Sebastian E. Ovide"
wrote:
> On Sat, May 28, 2011 at 6:36 PM, Massimo Di Pierro <
>
> massimo.dipie...@gmail.com> wrote:
> > Please try:
>
> > {{=LOAD("default","hello.load",args=("World",))}}
> > {{
hey,
thanks für ur fast reply (:
Still cant make it work though..
I guess for the first version i need to convert rows to int somehow,
as the MAX_id function does not
return a single integer :/. Always get this error:
TypeError: int() argument must be a string or a number, not 'Rows'
After fail
Yarko: thanks for your answer, I'll reply bellow:
On Sat, May 28, 2011 at 5:44 PM, Yarko Tymciurak wrote:
> Mariano -
> Here are my thoughts about this:
>
> You have changed the code fairly significantly, as I recall;
Yes and no, the code evolved, some old stuff was removed, some
remains, even t
i tried to get my implementation (slice 106) to work on app engine, but
could not find a way to properly sign the requests using the pycrypto
library that GAE provides. you get a gold star if you figure it out cause
i'd like to use it! :)
cfh
Yes, it is more a field to be edited. What you can do is hide this field in
the actionprofile like this:
db.auth_user.username.readable = \
db.auth_user.username.writable = False
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/5/28 Tito
I would think it would be editable. If you don't wan to let users change it,
you could set readable = writable = False.
I posted some code here on the forums. For gae, the main thing is to replace
the urllib calls with gae's fetch function.
Jason:
I did want to announce the project status, maybe it is useful to other
people and we can join forces, or not, maybe it is wise to move on
conf2py.
But please don't misunderstand me, I don't want to blame anyone, I
think this project was and is important to web2py, so it is not good
to let
I am trying to use crud but I get
TypeError: 'module' object is not callable
when I reference
globals() in
crud = Crud(globals(), mydb)
At the top of my source file I have
from gluon import *
from gluon.globals import *
from gluon.tools import Crud
My web2py is Version 1.93.2 (2011-03-0
I think that is something to bring up in a personal email. At least I
would think so.
Anyway, I am excited to see where this project can go as well, as I am
creating my own conferencing tool in web2py. InterestID.
---
Best Regards,
Jason Brower
On 05/28/2011 10:44 PM, Mariano Reingart wrote:
Y
This syntax:
Field('list_tags',type=gae.StringListProperty(),widget=str_list.widget),
Caused this error:
File "\src\gluon\sqlhtml.py", line 1164, in accepts
elif field.type.startswith('list:'):
AttributeError: 'StringListProperty' object has no attribute 'startswith'
This works though:
Fiel
Hi All,
I'm trying to use the ajax_trap funcs. but I'm getting JS errors and
therefore the traps are not working meither for the forms nor for the links:
In firebug I'm getting this error:
syntax error
[Break On This Error]
web2py_trap_form('('/soso/default/hello.load',)','c926878903071');
To re
On Sat, May 28, 2011 at 6:36 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Please try:
>
> {{=LOAD("default","hello.load",args=("World",))}}
> {{=LOAD("default","hello.load",args=(123,))}}
>
> Notice the extra comma. Anyway, your original code should also work. I
> will take a look.
Yarko/Massimo and web2py community:
This year, web2py will host the (inter)-national Python conference
here in Argentina, using web2conf:
http://ar.pycon.org/2011
Indeed, it is replacing pycon-tech, the django app, that not only was
old, complex and unmaintainable, but also died suddenly (no mor
Folks,
I've enabled the username field and it's editable editing the profile... is
it expected?
Regards,
Tito
--
Linux User #387870
.
_/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___
Please try:
{{=LOAD("default","hello.load",args=("World",))}}
{{=LOAD("default","hello.load",args=(123,))}}
Notice the extra comma. Anyway, your original code should also work. I
will take a look.
On May 28, 12:04 pm, "Sebastian E. Ovide"
wrote:
> Hi All,
>
> I have a simple controller:
>
> d
Hello,
Would just like to know if anybody has successfully implement a simple
Paypal express checkout procedure under the AppEngine environment? I
searched around and I found no instances where anyone has implemented
this. So far all I've found were:
http://web2pyslices.com/main/slices/take_slice
Hi All,
I have a simple controller:
def hello():
return dict(test="Hello %s" %(request.args(0)))
in my view
{{=LOAD("default","hello.load",args=("World"),ajax=True)}}
{{=LOAD("default","hello.load",args=(123),ajax=True)}}
both works displaying "Hello World" "Hello 123"
Nevertheless:
{{=L
On May 28, 2011, at 9:34 AM, Jason Brower wrote:
>
> Is there a way to use the IS_EMAIL feature in web2py on string? If not, what
> would be the best way to make sure each string I sent it is an email?
IS_EMAIL()('a...@b.com') returns the tuple ('a...@b.com', None), where the
second member of
check now, please
On May 28, 11:35 am, Massimo Di Pierro
wrote:
> It is a bug. should work. I will fix it later today
>
> On May 28, 11:25 am, villas wrote:
>
>
>
>
>
>
>
> > Hi Massimo
>
> > I tried that. I have this in db.py:
>
> > db._common_fields=[Field('request_tenant',default=request.env
It is a bug. should work. I will fix it later today
On May 28, 11:25 am, villas wrote:
> Hi Massimo
>
> I tried that. I have this in db.py:
>
> db._common_fields=[Field('request_tenant',default=request.env.http_host,wri
> table=False,readable=False),auth.signature]
>
> db.define_table('test',Fi
Is there a way to use the IS_EMAIL feature in web2py on string? If not,
what would be the best way to make sure each string I sent it is an email?
---
Best Regards,
Jason Brower
Hi Massimo
I tried that. I have this in db.py:
db._common_fields=[Field('request_tenant',default=request.env.http_host,writable=False,readable=False),auth.signature]
db.define_table('test',Field('testname'))
Traceback:
File "C:/Users/David/Documents/web2py/applications/multitenant/
models/db
db._common_fields=[Field('request_tenant',default=request.env.http_host,w
ritable=False,readable=False),auth.signature]
On May 28, 10:52 am, villas wrote:
> I have this:
>
> db._common_fields=[Field('request_tenant',default=request.env.http_host,w
> ritable=False,readable=False)]
>
> Now, how ca
I have this:
db._common_fields=[Field('request_tenant',default=request.env.http_host,w
ritable=False,readable=False)]
Now, how can I append auth.signature to the above db._common_fields?
This code was written 2 years ago and posted on he mailing list. I
never had and do not have today any intention of including it in
web2py. I do not like the syntax of Django and SQLAlchemy which is
verbose. I just posted the code because I thought it could help users
to migrate their Django module
After looking at the site I see what you mean. I will keep it in mind as
the program increases in size.
BR,
Jason Brower
On Sat, May 28, 2011 at 4:55 PM, pbreit wrote:
> It's not for speed so much as for deliverability.
I cannot reproduce the behavior you describe.
On May 28, 1:54 am, Geoff wrote:
> Hello:
>
> I was following the internationalization video tutorial and stumbled
> upon an issue that has left me confused.
>
> In the tutorial, a variable called _language=en is appended to the URL
> such as,
>
> 127
max_id = db(db.table).select(db.table.id.max())
and
db(db.table.id==max_id).update(field='avariable')
or
db(db.table.id.belongs(db(db.table)._select(db.table.id.max())).update(field='avariable')
but you should not count on id being sequential. That is not true on
GAE and it is not true for other
controllers and models in web2py are written in python but are not
python modules. They use objects
(request,response,...,local_import,...) that are not imported.
Sphinx does not understand this.
I am sure there is a way around (for example add to your models and
controllers:
if 1:
from gluo
There's support for exclusive domain mapping enforcement in the trunk now. It'd
be good if someone could try it out, because the unit tests I was able to come
up with aren't all that close to a real-world environment.
Just set exclusive_domain=True in the BASE router (for all domains) or an app
It's not for speed so much as for deliverability.
I would not comment on the technical aspects, which I'm sure are good.
I think it's a good idea to attract Django users, with *migration tools
*towards
web2py.
But adding those features as *permanent *for web2py could mainly forces the
web2py dev team to redirect time, energy and effort towar
Hello:
I was following the internationalization video tutorial and stumbled
upon an issue that has left me confused.
In the tutorial, a variable called _language=en is appended to the URL
such as,
127.0.0.1/default/index?_language=test
However, when I do this, request.get_vars is empty but
requ
Hi all,
im pretty new to web2py and encountered a little problem.
i need to find the highest ID in my table ( which through other
threads i
already accomplished) and update another field in this entry with an
variable.
(db.table.insert(field=db.table.field.store(request.body,'picture.jpg'))
i sta
At last, after much of sweat & toil, I could write a code for managing
multiple tables (conditional insert or update or delete) from single
form.
I agree, the code is in very raw form & may not be ‘pythonic’.
There are code repeatitions.
But at least I have something to go ahead & build a refined s
Hello Jason!
On May 28, 11:49 am, Jason Brower wrote:
> It's not in your version.
What do you mean with this? What is not in my version?
> But the upcoming release I think fixes this
> very issue.
And what and where is fixed?
> As far as I know.
> Best Regards,
> Jason
It's not in your version. But the upcoming release I think fixes this
very issue.
As far as I know.
Best Regards,
Jason
On 05/28/2011 11:47 AM, Vasil Petkov wrote:
Hello!
I use web2py 1.94 on Ubuntu with Python 2.7 and Sphinx 1.0.7. For the
documentation purposes, i have created a 'doc'-direct
Hello!
I use web2py 1.94 on Ubuntu with Python 2.7 and Sphinx 1.0.7. For the
documentation purposes, i have created a 'doc'-directory inside my
web2py-application. My web2py project has the following structure:
web2py
|_ server
| |_ applications
||_ init
|
On 05/28/2011 12:17 AM, pbreit wrote:
I'd also suggest SendGrid (200/day free, 10 cents for 1,000).
It looks like you are now trying it as a background process. I've had
better luck with cron. And since you only want to send every hour or
so, you could set the cron to run hourly.
I didn't know
67 matches
Mail list logo