@steve Thanks. It worked for me. :)
Regards,
Akash
On Sat, Apr 5, 2014 at 3:34 AM, 黄祥 wrote:
> please try (not tested)
> requires = IS_IN_DB(db((db.auth_user.id > 0) &
> (db.auth_user.registration_key == "") ), db.auth_user.id, '%(first_name)s
> %(last_name)s')
>
> best regards,
> stifan
>
> -
I am well aware of the usage of IS_IN_DB in web2py however I want to select
some particular values of the table in drop down.
Like presently this attribute selects all users registered in the
application.
db.Field('selected_users','string',requires=IS_IN_DB(db,db.auth_user.id,
'%(Name)s',zero=No
it helps
>
>
> On Monday, January 6, 2014 6:04:06 PM UTC-5, Cliff Kachinske wrote:
>>
>> On webfaction you can set up an email account and access it directly from
>> within web2py, thus eliminating the transmission to gmail.
>>
>> On Saturday, January 4, 2014 3:4
t;
> Also, requires=IS_CATEGORYIT should be requires=IS_CATEGORYIT().
>
> Anthony
>
> On Monday, January 6, 2014 3:41:35 PM UTC-5, Dave S wrote:
>>
>> On Monday, January 6, 2014 12:32:01 PM UTC-8, Akash Agrawall wrote:
>>>
>>> I am getting this error
rt, timepart = val.split(" ")
ValueError: need more than 1 value to unpack
On Tuesday, January 7, 2014 3:21:09 AM UTC+5:30, Anthony wrote:
>
> Yes, please provide more detail.
>
> Also, requires=IS_CATEGORYIT should be requires=IS_CATEGORYIT().
>
> Anthony
>
> On
On Tuesday, January 7, 2014 2:11:35 AM UTC+5:30, Dave S wrote:
>
> On Monday, January 6, 2014 12:32:01 PM UTC-8, Akash Agrawall wrote:
>>
>> I am getting this error:
>> "Need more than one value to unpack"
>>
>>
> Can you tell us which l
rt, timepart = val.split(" ")
ValueError: need more than 1 value to unpack
On Tuesday, January 7, 2014 2:11:35 AM UTC+5:30, Dave S wrote:
>
> On Monday, January 6, 2014 12:32:01 PM UTC-8, Akash Agrawall wrote:
>>
>> I am getting this error:
>> "Need more tha
I am getting this error:
"Need more than one value to unpack"
*db.py:*
class IS_CATEGORYIT(object):
def __init__(self, error_message="Zip code not allowed"):
self.error_message = error
def __call__(self, value):
error = None
print len(value)
if len(value)==0
Still same error. it's too urgent for me
you didn't mention anything about mail.settings.tls...
I tried all three combinations
1. commenting it out
2. keeping it false
3. keeping it true
still same output (a flash message showing "unable to send mail")
On Mon, Jan 6, 2014 at 7:55 PM, 黄祥
{} (534, '5.7.14 <
https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtQh\n5.7.14wnWg7iNJ76cQ-TNYHbtQ4Ow5zf3X78ZYd_hWCz-uLz6p26qOHkaLNwiHYAacQbCgpsTo8N\n5.7.14
jovPqLm6zPKwliPF7LV0Ods2eHGtAOyMq6tvuceciSmNFYaNaMF6ZmW3zhB5u4us_dAx0I\n5.7.14
NHzBmG5CGtHpEWBgLHx3NOC35I2gLQUppirDJCz1Eb71V
Sorry for late reply man. I checked the same no luck in that... !!
:(
my present code
from gluon.tools import Mail
mail = Mail()
#mail = auth.settings.mailer
mail.settings.server = 'localhost'
mail.settings.sender = 'fakeid425s...@gmail.com'
mail.settings.tls = None
mail.settings.log
Hie folks.. I know this question is already been asked but I didn't get any
help from those answers. please hava look at this
I am unable to send email in server(to be specific webfaction.com) ...
but it's running fine on local host
all these three lines in db.py are set to true.
auth.set
7;, 'field3']:
> db.auth_user[field].readable = db.auth_user[field].writable =
> False
> form = auth.register()
>
> Anthony
>
>
> On Friday, January 3, 2014 9:01:39 AM UTC-5, Akash Agrawall wrote:
>>
>> Have to define all the attributes in c
Have to define all the attributes in custom form otherwise it won't
run... wasn't doing the same. define it as hidden if you don't want
user to see them. !!
On Tuesday, December 31, 2013 5:54:34 PM UTC+5:30, Akash Agrawall wrote:
>
> Hie folks. When I clic
the auth.messages object to set
> them.
>
> Anthony
>
> On Thursday, January 2, 2014 5:30:54 AM UTC-5, Akash Agrawall wrote:
>>
>> Thanks for marking that error. but after changing that also same
>> error. :( it's urgent...
>&g
e the auth.messages object to set
> them.
>
> Anthony
>
> On Thursday, January 2, 2014 5:30:54 AM UTC-5, Akash Agrawall wrote:
>>
>> Thanks for marking that error. but after changing that also same
>> error. :( it's urgent...
>>
>> On T
>
> On Tuesday, December 31, 2013 7:24:34 AM UTC-5, Akash Agrawall wrote:
>>
>> Hie folks. When I click on submit button of the CUSTOM REGISTRATION
>> form. it redirects to the same page.. ?? No idea what this is
>> about..
>> Controller: default.p
Hie folks. When I click on submit button of the CUSTOM REGISTRATION
form. it redirects to the same page.. ?? No idea what this is
about..
Controller: default.py
def register():
form=auth.register()
form.add_button('Cancel', URL('register'))
form=auth.regis
Thanx man.. it worked.
On Friday, November 1, 2013 3:57:15 AM UTC+5:30, Akash Agrawall wrote:
>
> Hie guys I am a newbie in web2py
> I have added a Field in the table which goes like this:
> { db.Field('category','list:reference
> Category'
Hie guys I am a newbie in web2py
I have added a Field in the table which goes like this:
{ db.Field('category','list:reference
Category',requires=IS_IN_DB(db,'Category.id','Category.Name',multiple=True))
}
how to implement it more as a checkbox type what is the syntax for
it ??
20 matches
Mail list logo