[web2py] Need to set a default application

2018-11-04 Thread Arindam Dasgupta
Hi ,

I have purchased a domain and whenever I enter "www.mydomain.com" the 
browser lands in the page : http://www.mydomain/welcome/default/index.

I want to change the default application , default controller and default 
view so that whenever someone enters www.mydomain.com then he lands in 
http://www.mydomain/myapp/mycontroller/myview.

I came to know from web that I should modify the file routes.py with the 
following :

default_application='AppName'
default_controller = "user"
default_function = "login"

But where do I find the file routes.py? 


Thanks in advance for your help.


BR//Arindam

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Unable to display dropdown lists in forms

2018-12-04 Thread Arindam Dasgupta
Hi,
I need to display a drop down list in my form but have no idea how to do
it. I have the following arrangements :

Model :

db.define_table('orders',

Field('comments' ,type='string'),
Field('print_size',requires=IS_IN_SET(['5x3.5', '6x4',
'6x4.5', '5x7', '5x7.5', '6x8', '6x9', '12x8', '12x10',
 '12x12', '12x15', '12x18', '12x24', '12x30',
'12x36']),default='6x4'),

Field('paper_type',requires=IS_IN_SET(['Matte','Glossy']),default='Matte'),
Field('copies',requires=IS_IN_SET(mylist),default=1),
Field('cart',type='boolean' ,default='False'),
Field('checkout',type='boolean' ,default='False'),
Field('pic_upload' ,'upload',autodelete=True),
Field('order_id' , type='integer',default= 0),
Field('price' , type='float' , default=1),
Field('unit_price' , type='float' , default=1),
Field('order_status' , requires=IS_IN_SET(['Delivered','Not
Delivered']) , default='Not Delivered'),

auth.signature
)

Controller :

def multiple_upload():
  import datetime

  form = FORM(LABEL("File(s):"), INPUT(_name='pic_upload', _type='file',
_multiple=''),
  BR(), LABEL("Comments:"), INPUT(_name='comments'),
  BR(), LABEL("Print Size:"), INPUT(_name='print_size'),
  BR(), LABEL("Paper Type:"),INPUT(_name='paper_type'
,requires=IS_IN_SET(['Matte','Glossy']) ),
  BR(), LABEL("copies:"), INPUT(_name='copies'),
  BR(),INPUT(_type='submit'))

return dict(form=form)


View:

{{extend 'layout.html'}}
This is the default/multiple_upload.html template
{{=form}}

In the paper type field I need to display a drop down with values ('Matte'
, 'Glossy').
Can you please show me how to do that.I dont want to use SQL form or
SQLFORM.FACTORY .
Thanks in advance for your kind suggestions.

Best Regards,
Arindam

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Unable to display dropdown lists in forms

2018-12-04 Thread Arindam Dasgupta
@ sandeep.
Thanks a lot for your solution and it is working for me. But I am facing a
small problem : When I choose a option from the drop down list and later
change my mind and try to select a different value , I cannot do that
because after the first selection, it is not showing other values.Any
insight on this ? Thanks.

On Tue, Dec 4, 2018 at 10:11 PM Ben Duncan  wrote:

> Here is a sample I did when I found some OLD web2py forums. I tested with
> a dictionary then
> with a "in" DB ..
> In controller/default.py:
>
> def company_login():
> # Read the company file into a dictionary
> company =
> db(db.company).select(db.company.company_number,db.company.company_name,orderby=db.company.company_name)
>
> # Create a form using the sets
> form = SQLFORM.factory(
> Field('username', requires=IS_NOT_EMPTY()),
> Field('password', 'password', requires=IS_NOT_EMPTY()),
> Field('Company',
> requires=IS_IN_DB(db,db.company.company_number,'%(company_name)s')))
> #Field('Company', requires=IS_IN_SET(company)))
>
> # Note: IS_IN_SET is fugly, anyone know a way to "format" it for display?
>
> if form.process().accepted:
> #   redirect(URL('index'))
>response.flash = 'form accepted'
> elif form.errors:
>response.flash = T('form has errors')
>
> return dict(form=form)
>
> In views/default/company_login.html :
>
> {{extend 'layout.html'}}
> {{=form}}
>
>
> -
> Ok, my NEXT questions along this thread:
> I need to display the values returned from the sqlform, any ideas on this ?
>
> thanks ..
>
> *Ben Duncan*
> DBA / Chief Software Architect
> Mississippi State Supreme Court
> Electronic Filing Division
>
>
> On Tue, Dec 4, 2018 at 9:08 AM sandeep patel 
> wrote:
>
>> @Arindam: Try the following code instead
>>
>> def test():
>> form = FORM(LABEL("File(s):"), INPUT(_name='pic_upload',
>> _type='file', _multiple=''),
>>   BR(), LABEL("Comments:"), INPUT(_name='comments'),
>>   BR(), LABEL("Print Size:"), INPUT(_name='print_size'),
>>   BR(), LABEL("copies:"), INPUT(_name='copies'))
>> form.append(XML('> id="names">'))
>> form.append(XML('submit'))
>>
>> return locals()
>>
>> Hope this works for you
>>
>> Thanks
>> SP
>>
>> On Tue, Dec 4, 2018 at 8:02 PM Lovedie JC  wrote:
>>
>>> I have done something like that. Let me retrieve it in 3hrs
>>>
>>> On 4 Dec 2018 5:17 PM, "Ben Duncan"  wrote:
>>>
>>> I was working on trying to figure out the EXACT same thing !
>>>
>>> Thanks ..
>>>
>>> *Ben Duncan*
>>> DBA / Chief Software Architect
>>> Mississippi State Supreme Court
>>> Electronic Filing Division
>>>
>>>
>>> On Tue, Dec 4, 2018 at 6:40 AM Arindam Dasgupta 
>>> wrote:
>>>
>>>> Hi,
>>>> I need to display a drop down list in my form but have no idea how to
>>>> do it. I have the following arrangements :
>>>>
>>>> Model :
>>>>
>>>> db.define_table('orders',
>>>>
>>>> Field('comments' ,type='string'),
>>>> Field('print_size',requires=IS_IN_SET(['5x3.5', '6x4',
>>>> '6x4.5', '5x7', '5x7.5', '6x8', '6x9', '12x8', '12x10',
>>>>'12x12', '12x15', '12x18', '12x24', '12x30',
>>>> '12x36']),default='6x4'),
>>>>
>>>> Field('paper_type',requires=IS_IN_SET(['Matte','Glossy']),default='Matte'),
>>>> Field('copies',requires=IS_IN_SET(mylist),default=1),
>>>> Field('cart',type='boolean' ,default='False'),
>>>> Field('checkout',type='boolean' ,default='False'),
>>>> Field('pic_upload' ,'upload',autodelete=True),
>>>> Field('order_id' , type='integer',default= 0),
>&g

Re: [web2py] Re: Unable to display dropdown lists in forms

2018-12-04 Thread Arindam Dasgupta
@ sandeep : your solution works for me but the problem is that I cammot
style the elements added later using general css rules like :

input[type=submit]{
background-color: #4CAF50;
border: none;
color: white;
padding: 16px 32px;
text-decoration: none;
margin: 4px 2px;
cursor: pointer;
}


BR//Arindam

On Wed, Dec 5, 2018 at 11:07 AM Dave S  wrote:

>
>
> On Tuesday, December 4, 2018 at 4:40:30 AM UTC-8, Arindam Dasgupta wrote:
>>
>> Hi,
>> I need to display a drop down list in my form but have no idea how to do
>> it. I have the following arrangements :
>>
>> Model :
>>
>> db.define_table('orders',
>>
>> Field('comments' ,type='string'),
>> Field('print_size',requires=IS_IN_SET(['5x3.5', '6x4',
>> '6x4.5', '5x7', '5x7.5', '6x8', '6x9', '12x8', '12x10',
>>  '12x12', '12x15', '12x18', '12x24', '12x30',
>> '12x36']),default='6x4'),
>>
>> Field('paper_type',requires=IS_IN_SET(['Matte','Glossy']),default='Matte'),
>> Field('copies',requires=IS_IN_SET(mylist),default=1),
>> Field('cart',type='boolean' ,default='False'),
>> Field('checkout',type='boolean' ,default='False'),
>> Field('pic_upload' ,'upload',autodelete=True),
>> Field('order_id' , type='integer',default= 0),
>> Field('price' , type='float' , default=1),
>> Field('unit_price' , type='float' , default=1),
>> Field('order_status' ,
>> requires=IS_IN_SET(['Delivered','Not Delivered']) , default='Not
>> Delivered'),
>>
>> auth.signature
>> )
>>
>> Controller :
>>
>> def multiple_upload():
>>   import datetime
>>
>>   form = FORM(LABEL("File(s):"), INPUT(_name='pic_upload', _type='file',
>> _multiple=''),
>>   BR(), LABEL("Comments:"), INPUT(_name='comments'),
>>   BR(), LABEL("Print Size:"), INPUT(_name='print_size'),
>>   BR(), LABEL("Paper Type:"),INPUT(_name='paper_type'
>> ,requires=IS_IN_SET(['Matte','Glossy']) ),
>>   BR(), LABEL("copies:"), INPUT(_name='copies'),
>>   BR(),INPUT(_type='submit'))
>>
>> return dict(form=form)
>>
>>
>> View:
>>
>> {{extend 'layout.html'}}
>> This is the default/multiple_upload.html template
>> {{=form}}
>>
>> In the paper type field I need to display a drop down with values
>> ('Matte' , 'Glossy').
>> Can you please show me how to do that.I dont want to use SQL form or
>> SQLFORM.FACTORY .
>> Thanks in advance for your kind suggestions.
>>
>> Best Regards,
>> Arindam
>>
>
>
> SQLFORM() does dropdown lists for fields where requires=IS_IN_DB() is
> set.  I haven't bothered much with other form helpers or with straight HTML
> forms.
>
> /dps
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Unable to display dropdown lists in forms

2018-12-05 Thread Arindam Dasgupta
@ Sandeep : Thank you so much for the much needed help. My code is atleast
up and running now!!

Regards,
Arindam

On Wed, Dec 5, 2018 at 12:10 PM Arindam Dasgupta 
wrote:

> @ sandeep : your solution works for me but the problem is that I cammot
> style the elements added later using general css rules like :
>
> input[type=submit]{
> background-color: #4CAF50;
> border: none;
> color: white;
> padding: 16px 32px;
> text-decoration: none;
> margin: 4px 2px;
> cursor: pointer;
> }
>
>
> BR//Arindam
>
> On Wed, Dec 5, 2018 at 11:07 AM Dave S  wrote:
>
>>
>>
>> On Tuesday, December 4, 2018 at 4:40:30 AM UTC-8, Arindam Dasgupta wrote:
>>>
>>> Hi,
>>> I need to display a drop down list in my form but have no idea how to do
>>> it. I have the following arrangements :
>>>
>>> Model :
>>>
>>> db.define_table('orders',
>>>
>>> Field('comments' ,type='string'),
>>> Field('print_size',requires=IS_IN_SET(['5x3.5', '6x4',
>>> '6x4.5', '5x7', '5x7.5', '6x8', '6x9', '12x8', '12x10',
>>>  '12x12', '12x15', '12x18', '12x24', '12x30',
>>> '12x36']),default='6x4'),
>>>
>>> Field('paper_type',requires=IS_IN_SET(['Matte','Glossy']),default='Matte'),
>>> Field('copies',requires=IS_IN_SET(mylist),default=1),
>>> Field('cart',type='boolean' ,default='False'),
>>> Field('checkout',type='boolean' ,default='False'),
>>> Field('pic_upload' ,'upload',autodelete=True),
>>> Field('order_id' , type='integer',default= 0),
>>> Field('price' , type='float' , default=1),
>>> Field('unit_price' , type='float' , default=1),
>>> Field('order_status' ,
>>> requires=IS_IN_SET(['Delivered','Not Delivered']) , default='Not
>>> Delivered'),
>>>
>>> auth.signature
>>> )
>>>
>>> Controller :
>>>
>>> def multiple_upload():
>>>   import datetime
>>>
>>>   form = FORM(LABEL("File(s):"), INPUT(_name='pic_upload', _type='file',
>>> _multiple=''),
>>>   BR(), LABEL("Comments:"), INPUT(_name='comments'),
>>>   BR(), LABEL("Print Size:"), INPUT(_name='print_size'),
>>>   BR(), LABEL("Paper Type:"),INPUT(_name='paper_type'
>>> ,requires=IS_IN_SET(['Matte','Glossy']) ),
>>>   BR(), LABEL("copies:"), INPUT(_name='copies'),
>>>   BR(),INPUT(_type='submit'))
>>>
>>> return dict(form=form)
>>>
>>>
>>> View:
>>>
>>> {{extend 'layout.html'}}
>>> This is the default/multiple_upload.html template
>>> {{=form}}
>>>
>>> In the paper type field I need to display a drop down with values
>>> ('Matte' , 'Glossy').
>>> Can you please show me how to do that.I dont want to use SQL form or
>>> SQLFORM.FACTORY .
>>> Thanks in advance for your kind suggestions.
>>>
>>> Best Regards,
>>> Arindam
>>>
>>
>>
>> SQLFORM() does dropdown lists for fields where requires=IS_IN_DB() is
>> set.  I haven't bothered much with other form helpers or with straight HTML
>> forms.
>>
>> /dps
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Unable to land in reset password page

2018-12-10 Thread Arindam Dasgupta
Hi Friends,

I need to make the "reset password" option work for my application. For
this I made the following changes to my model db.py :

auth.settings.registration_requires_verification = True
auth.settings.registration_requires_approval = True
auth.settings.reset_password_requires_verification = True


mail = auth.settings.mailer
mail.settings.server = 'smtp.gmail.com:587'
mail.settings.sender = 'myem...@gmail.com'
mail.settings.tls = True
mail.settings.login ='my_usern...@gmail.com:my_password'

I also had to set the "allow less secure apps" setting to ON in my gmail
settings.

After this when I am clicking on the "Lost password" button in the login
page, it is asking for a email id to send the reset link. Finally it is
mailing a link like the following reset link to the given user email :

Click on the link
http://www.pixmate.online/welcome/default/user/reset_password?key=1544452112-629e9763-ahc0-495b-b921-172dc14a6616
<http://www.pixmate.online/welcome/default/user/reset_password?key=1544452112-629e9763-abc0-495b-b921-152dc14a6616>
to
reset your password.

But when I am clicking this link it is taking me to the default welcome
page of my application instead of the reset password page.
What should I check to get the issue solved ?

Thanks in advance for your help,
Arindam Dasgupta

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Unable to land in reset password page

2018-12-11 Thread Arindam Dasgupta
Hi ,

Has any one had a chance to have a look at this issue? At least pLease let
me know where to look or which document to consult in order to solve this.
  Thanks!!

On Mon, Dec 10, 2018 at 8:59 PM Arindam Dasgupta 
wrote:

> Hi Friends,
>
> I need to make the "reset password" option work for my application. For
> this I made the following changes to my model db.py :
>
> auth.settings.registration_requires_verification = True
> auth.settings.registration_requires_approval = True
> auth.settings.reset_password_requires_verification = True
>
>
> mail = auth.settings.mailer
> mail.settings.server = 'smtp.gmail.com:587'
> mail.settings.sender = 'myem...@gmail.com'
> mail.settings.tls = True
> mail.settings.login ='my_usern...@gmail.com:my_password'
>
> I also had to set the "allow less secure apps" setting to ON in my gmail
> settings.
>
> After this when I am clicking on the "Lost password" button in the login
> page, it is asking for a email id to send the reset link. Finally it is
> mailing a link like the following reset link to the given user email :
>
> Click on the link
> http://www.pixmate.online/welcome/default/user/reset_password?key=1544452112-629e9763-ahc0-495b-b921-172dc14a6616
> <http://www.pixmate.online/welcome/default/user/reset_password?key=1544452112-629e9763-abc0-495b-b921-152dc14a6616>
>  to
> reset your password.
>
> But when I am clicking this link it is taking me to the default welcome
> page of my application instead of the reset password page.
> What should I check to get the issue solved ?
>
> Thanks in advance for your help,
> Arindam Dasgupta
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Unable to land in reset password page

2018-12-11 Thread Arindam Dasgupta
Hi,

I have tried this again and found that the link is working and taking me to
the reset password page in Internet Explorer and Mozilla fire fox. Thank
you and I am feeling great  :-)  But in Google Chorme browser it is taking
me to my home page. Do you have any idea why this is happening?

On Tue, Dec 11, 2018 at 5:07 PM 黄祥  wrote:

> On Tuesday, December 11, 2018 at 6:20:18 PM UTC+7, Leonel Câmara wrote:
>>
>> Humm your link is actually working fine for me, I followed it and got the
>> reset password form.
>>
>
> same here your link works fine, perhaps you can post the traceback error
> or the error logs (web server) you had
>
> best regards,
> stifan
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Unable to land in reset password page

2018-12-11 Thread Arindam Dasgupta
Hi Anthony, As I wrote later in this thread, in google chrome browser it is
taking me to ..default/index (home page) . But in other browsers it is
taking me to password reset page.

BR//Arindam

On Tue, Dec 11, 2018 at 10:25 PM Anthony  wrote:

> For me it redirects to /default/index, but presumably that is because the
> link has expired (it only works for 24 hours). Have you tried it with a
> fresh link?
>
> On Tuesday, December 11, 2018 at 8:34:00 AM UTC-5, Arindam Dasgupta wrote:
>>
>> Hi,
>>
>> I have tried this again and found that the link is working and taking me
>> to the reset password page in Internet Explorer and Mozilla fire fox. Thank
>> you and I am feeling great  :-)  But in Google Chorme browser it is taking
>> me to my home page. Do you have any idea why this is happening?
>>
>> On Tue, Dec 11, 2018 at 5:07 PM 黄祥  wrote:
>>
>>> On Tuesday, December 11, 2018 at 6:20:18 PM UTC+7, Leonel Câmara wrote:
>>>>
>>>> Humm your link is actually working fine for me, I followed it and got
>>>> the reset password form.
>>>>
>>>
>>> same here your link works fine, perhaps you can post the traceback error
>>> or the error logs (web server) you had
>>>
>>> best regards,
>>> stifan
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Unable to land in reset password page

2018-12-11 Thread Arindam Dasgupta
Hi, Surprisingly the links are working fine for me in google chrome too. I
have no idea what has changed now.

Regards,\Arindam

On Tue, Dec 11, 2018 at 11:00 PM Arindam Dasgupta 
wrote:

> Hi Anthony, As I wrote later in this thread, in google chrome browser it
> is taking me to ..default/index (home page) . But in other browsers it is
> taking me to password reset page.
>
> BR//Arindam
>
> On Tue, Dec 11, 2018 at 10:25 PM Anthony  wrote:
>
>> For me it redirects to /default/index, but presumably that is because the
>> link has expired (it only works for 24 hours). Have you tried it with a
>> fresh link?
>>
>> On Tuesday, December 11, 2018 at 8:34:00 AM UTC-5, Arindam Dasgupta wrote:
>>>
>>> Hi,
>>>
>>> I have tried this again and found that the link is working and taking me
>>> to the reset password page in Internet Explorer and Mozilla fire fox. Thank
>>> you and I am feeling great  :-)  But in Google Chorme browser it is taking
>>> me to my home page. Do you have any idea why this is happening?
>>>
>>> On Tue, Dec 11, 2018 at 5:07 PM 黄祥  wrote:
>>>
>>>> On Tuesday, December 11, 2018 at 6:20:18 PM UTC+7, Leonel Câmara wrote:
>>>>>
>>>>> Humm your link is actually working fine for me, I followed it and got
>>>>> the reset password form.
>>>>>
>>>>
>>>> same here your link works fine, perhaps you can post the traceback
>>>> error or the error logs (web server) you had
>>>>
>>>> best regards,
>>>> stifan
>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Unable to land in reset password page

2018-12-13 Thread Arindam Dasgupta
Hi Anthony,

You are right. Old links are not taking me to the reset password page.
Instead they are taking me to the default page. But new links are taking me
to the reset page.

Best Regards,
Arindam

On Wed, Dec 12, 2018 at 3:50 AM Anthony  wrote:

> On Tuesday, December 11, 2018 at 12:30:21 PM UTC-5, Arindam Dasgupta wrote:
>>
>> Hi Anthony, As I wrote later in this thread, in google chrome browser it
>> is taking me to ..default/index (home page) . But in other browsers it is
>> taking me to password reset page.
>>
>
> Yes, but my question was whether you were trying Chrome with a fresh link
> vs. one that has expired (older than 24 hours). For example, what happens
> with this link:
> http://www.pixmate.online/welcome/default/user/reset_password?key=1544452112-629e9763-ahc0-495b-b921-172dc14a6616
> <http://www.google.com/url?q=http%3A%2F%2Fwww.pixmate.online%2Fwelcome%2Fdefault%2Fuser%2Freset_password%3Fkey%3D1544452112-629e9763-abc0-495b-b921-152dc14a6616&sa=D&sntz=1&usg=AFQjCNFmANYpFFz8FEQSqSkUNa2BmKtLeQ>?
> It should not work in any browser, but a fresh link should work in all
> browsers.
>
> Anthony
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] How do I import Libraries in Web2py

2018-12-13 Thread Arindam Dasgupta
Hi,

I have a general question in my mind that how do I import a library in
web2py.
For example should I need a library like "openpyxl" or "matplotlib.pyplot"
what do I do?  I am talking about the pythonanywhere framework available
online through "https://www.pythonanywhere.com";.

I should not expect that all the available libraries are already installed
and I just have to import it at the top of my code. Also please let me know
How do I find which libraries are available by default and which are not.

Many thanks in advance for your help.

Best Regards,
Arindam

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Need to integrate paytm payment gateway in my app

2018-12-14 Thread Arindam Dasgupta
Hi,
I need to integrate the paytm payment gateway in my application . For that
I have already created an account and have for the test api and production
api details.
Test API details include :
Test Merchant ID
Test Account Secret Key
Production API details include :
Merchant ID
Merchant Key
Website Name
Industry Type

But I have no Idea how to proceed next. I have went through the details
provided in the link :
https://developer.paytm.com/docs/v1/payment-gateway

But I am not sure where to put the downloadable codes.
Your help means a lot to me. Thanks in advance.

Best Regards,
Arindam Dasgupta

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] How do I import Libraries in Web2py

2018-12-14 Thread Arindam Dasgupta
Hi,
I am takling about how to install libraries in python anywhere cloud just
like I would open command prompt in my local machine and use the
command "python
-m pip install XXX" in order to install a certain package locally. Where do
I do the same thing after logging in to www.pythonanywhere.com?

Regards,
Arindam Dasgupta

On Thu, Dec 13, 2018 at 9:38 PM Ben Duncan  wrote:

> Are you talking about running IN pythonanywhere cloud?
>
> If you are talking about running locally but including the libraries, you
> would install the libraries, then put the
> include statements in models/0.py or models/db.py and modify the sys
> search path as referenced in:
>
> https://docs.python.org/2/tutorial/modules.html
>
> Hope this helps ...
>
> *Ben Duncan*
> DBA / Chief Software Architect
> Mississippi State Supreme Court
> Electronic Filing Division
>
>
> On Thu, Dec 13, 2018 at 9:57 AM Arindam Dasgupta 
> wrote:
>
>> Hi,
>>
>> I have a general question in my mind that how do I import a library in
>> web2py.
>> For example should I need a library like "openpyxl" or
>> "matplotlib.pyplot" what do I do?  I am talking about the pythonanywhere
>> framework available online through "https://www.pythonanywhere.com";.
>>
>> I should not expect that all the available libraries are already
>> installed and I just have to import it at the top of my code. Also please
>> let me know How do I find which libraries are available by default and
>> which are not.
>>
>> Many thanks in advance for your help.
>>
>> Best Regards,
>> Arindam
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] How do I import Libraries in Web2py

2018-12-14 Thread Arindam Dasgupta
Thanks Ben, thats exactly what I was asking for.

Best Regards,
Arindam

On Dec 14, 2018 10:08 PM, "Ben Duncan"  wrote:

> https://help.pythonanywhere.com/pages/InstallingNewModules/
>
> You will have to use a bash console ...
>
> *Ben Duncan*
> DBA / Chief Software Architect
> Mississippi State Supreme Court
> Electronic Filing Division
>
>
> On Fri, Dec 14, 2018 at 10:10 AM Arindam Dasgupta 
> wrote:
>
>> Hi,
>> I am takling about how to install libraries in python anywhere cloud just
>> like I would open command prompt in my local machine and use the command 
>> "python
>> -m pip install XXX" in order to install a certain package locally. Where
>> do I do the same thing after logging in to www.pythonanywhere.com?
>>
>> Regards,
>> Arindam Dasgupta
>>
>> On Thu, Dec 13, 2018 at 9:38 PM Ben Duncan  wrote:
>>
>>> Are you talking about running IN pythonanywhere cloud?
>>>
>>> If you are talking about running locally but including the libraries,
>>> you would install the libraries, then put the
>>> include statements in models/0.py or models/db.py and modify the sys
>>> search path as referenced in:
>>>
>>> https://docs.python.org/2/tutorial/modules.html
>>>
>>> Hope this helps ...
>>>
>>> *Ben Duncan*
>>> DBA / Chief Software Architect
>>> Mississippi State Supreme Court
>>> Electronic Filing Division
>>>
>>>
>>> On Thu, Dec 13, 2018 at 9:57 AM Arindam Dasgupta 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have a general question in my mind that how do I import a library in
>>>> web2py.
>>>> For example should I need a library like "openpyxl" or
>>>> "matplotlib.pyplot" what do I do?  I am talking about the pythonanywhere
>>>> framework available online through "https://www.pythonanywhere.com";.
>>>>
>>>> I should not expect that all the available libraries are already
>>>> installed and I just have to import it at the top of my code. Also please
>>>> let me know How do I find which libraries are available by default and
>>>> which are not.
>>>>
>>>> Many thanks in advance for your help.
>>>>
>>>> Best Regards,
>>>> Arindam
>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Need to integrate paytm payment gateway in my app

2018-12-14 Thread Arindam Dasgupta
Hi Sandeep,
I chose paytm gateway because I know it will work in India. Also I did not
find resources for PayUMoney in the internet.
Please share with me how to integrate payumoney in web2py apps . It will do
perfectly fine for me. I appreciate your generous help truly.

Best Regards,
Arindam

On Sat, Dec 15, 2018 at 3:33 AM Dave S  wrote:

>
>
> On Friday, December 14, 2018 at 1:47:26 PM UTC-8, Dave S wrote:
>>
>>
>>
>> On Friday, December 14, 2018 at 8:06:18 AM UTC-8, Arindam Dasgupta wrote:
>>>
>>> Hi,
>>> I need to integrate the paytm payment gateway in my application . For
>>> that I have already created an account and have for the test api and
>>> production api details.
>>> Test API details include :
>>> Test Merchant ID
>>> Test Account Secret Key
>>> Production API details include :
>>> Merchant ID
>>> Merchant Key
>>> Website Name
>>> Industry Type
>>>
>>> But I have no Idea how to proceed next. I have went through the details
>>> provided in the link :
>>> https://developer.paytm.com/docs/v1/payment-gateway
>>>
>>> But I am not sure where to put the downloadable codes.
>>> Your help means a lot to me. Thanks in advance.
>>>
>>> Best Regards,
>>> Arindam Dasgupta
>>>
>>
>>
>> Would it be similar to how to use Google Wallet and Stripe?
>> > web2py.com/books/default/chapter/29/14/other-recipes#Accepting-credit-card-payments
>> >
>>
>
>
> If you're on PythonAnywhere, the instructions for Stripe should be updated:
>
> https://groups.google.com/d/msg/web2py/LoHTZpAG1mU/MKrQznDIBQAJ>
> https://groups.google.com/d/msg/web2py/z6YBT1V_YKk/p4wLKYLMBQAJ>
>
> /dps
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Need to integrate paytm payment gateway in my app

2018-12-14 Thread Arindam Dasgupta
@Dave , I learnt that stripe dont support payments from India. So Stripe
will not be useful for me. I also tried for Google pay , but the
information provided in the manual you mentioned above is not sufficient. I
already made a merchant account in google (https://merchants.google.com)
and I even have a merchant ID , but then I am not able to find in the
google merchant site where to put my bank details for accepting payments.

Regards,
Arindam



On Sat, Dec 15, 2018 at 8:56 AM Arindam Dasgupta 
wrote:

> Hi Sandeep,
> I chose paytm gateway because I know it will work in India. Also I did not
> find resources for PayUMoney in the internet.
> Please share with me how to integrate payumoney in web2py apps . It will
> do perfectly fine for me. I appreciate your generous help truly.
>
> Best Regards,
> Arindam
>
> On Sat, Dec 15, 2018 at 3:33 AM Dave S  wrote:
>
>>
>>
>> On Friday, December 14, 2018 at 1:47:26 PM UTC-8, Dave S wrote:
>>>
>>>
>>>
>>> On Friday, December 14, 2018 at 8:06:18 AM UTC-8, Arindam Dasgupta wrote:
>>>>
>>>> Hi,
>>>> I need to integrate the paytm payment gateway in my application . For
>>>> that I have already created an account and have for the test api and
>>>> production api details.
>>>> Test API details include :
>>>> Test Merchant ID
>>>> Test Account Secret Key
>>>> Production API details include :
>>>> Merchant ID
>>>> Merchant Key
>>>> Website Name
>>>> Industry Type
>>>>
>>>> But I have no Idea how to proceed next. I have went through the details
>>>> provided in the link :
>>>> https://developer.paytm.com/docs/v1/payment-gateway
>>>>
>>>> But I am not sure where to put the downloadable codes.
>>>> Your help means a lot to me. Thanks in advance.
>>>>
>>>> Best Regards,
>>>> Arindam Dasgupta
>>>>
>>>
>>>
>>> Would it be similar to how to use Google Wallet and Stripe?
>>> >> web2py.com/books/default/chapter/29/14/other-recipes#Accepting-credit-card-payments
>>> >
>>>
>>
>>
>> If you're on PythonAnywhere, the instructions for Stripe should be
>> updated:
>>
>> https://groups.google.com/d/msg/web2py/LoHTZpAG1mU/MKrQznDIBQAJ>
>> https://groups.google.com/d/msg/web2py/z6YBT1V_YKk/p4wLKYLMBQAJ>
>>
>> /dps
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-15 Thread Arindam Dasgupta
Hi Sandeep,

I installed the app in pythonanywhere cloud and tried to view the
index.html file. it said :Requires web2py 2.15.5 or newer

Then I commented out the below two lines from db.py and tried again. But
then it gave errors:
if request.global_settings.web2py_version < "2.15.5":
  raise HTTP(500, "Requires web2py 2.15.5 or newer")

Error ticket for "payumoney"Ticket ID

42.110.131.171.2018-12-15.07-55-13.2cbcd4c5-a853-4a8c-a2d5-e268448066da
 unsupported pickle protocol: 3Version
web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
Python Python 2.7.6: /usr/local/bin/uwsgi (prefix: /usr)Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.

Traceback (most recent call last):
  File "/home/earinda/FarmFresh/gluon/restricted.py", line 227, in restricted
exec ccode in environment
  File "/home/earinda/FarmFresh/applications/payumoney/models/db.py"
,
line 95, in 
auth.define_tables(username=False, signature=False)
  File "/home/earinda/FarmFresh/gluon/tools.py", line 2376, in define_tables
format='%(first_name)s %(last_name)s (%(id)s)'))
  File "/home/earinda/FarmFresh/gluon/packages/dal/pydal/base.py",
line 834, in define_table
table = self.lazy_define_table(tablename,*fields,**args)
  File "/home/earinda/FarmFresh/gluon/packages/dal/pydal/base.py",
line 873, in lazy_define_table
polymodel=polymodel)
  File "/home/earinda/FarmFresh/gluon/packages/dal/pydal/adapters/base.py",
line 500, in create_table
sql_fields_old = pickle.load(tfile)
ValueError: unsupported pickle protocol: 3



How do I get it right?

Best Regards,
Arindam

On Sat, Dec 15, 2018 at 12:34 PM sandeep patel 
wrote:

> Hello All,
>
> I have customized PayUmoney python SDK for
> the Web2py user. This app
> can in integrate with any web2py app and customize according to your needs.
>
> Thanks
> Sandeep Patel
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-15 Thread Arindam Dasgupta
Hi sandeep,
At last I have figured it out myself and the python version is now 3.6.0
And after this change your payumoney app is also running. :-)
Thanks.

[image: image.png]

On Sat, Dec 15, 2018 at 3:21 PM Arindam Dasgupta 
wrote:

> Hi I backed up my apps and clicked on the upgrade button. The result is
> that web2py version got changed to 2.17.2 but python version is still
> 2.7.6. Now how to upgrade to python 3.6.6 Please don't answer my question
> today. Because I know it is too much for today . :-)
>
> [image: image.png]
>
> On Sat, Dec 15, 2018 at 2:35 PM sandeep patel 
> wrote:
>
>> Currently, you are using python 2.7.6 and web2py 2.14.6 version.
>> I have tested this app on python3.6.6 and web2py 2.16.1 and 2.17.2.
>>
>> You can upgrade directly by clicking on the button(upgrade new to version
>> 2.17.2).
>> But be careful first take back-up of your apps :)
>>
>> Thanks/
>>
>>
>>
>>
>>
>>
>>
>>
>> On Sat, Dec 15, 2018 at 2:03 PM Arindam Dasgupta 
>> wrote:
>>
>>> Hi Sandeep,
>>> In my pythonanywhere page I can see the following version . So my
>>> version is 2.7.6 or 2.14.6 ?
>>> Now I am getting a upgrade option here to version 2.17.2 but it is
>>> telling that is is an experimental one. So how do I upgrade it to one of
>>> your version ( 2.16.1 or 2.17.2). And also I I do, then will my existing
>>> apps be still there or I will have to reinstall them?
>>> Sorry If I am asking too much questions. Thanks in advance. :-)
>>>
>>>
>>> [image: image.png]
>>>
>>> On Sat, Dec 15, 2018 at 1:43 PM sandeep patel 
>>> wrote:
>>>
>>>> I think this error getting because of version. I have tested on both
>>>> versions 2.16.1 and 2.17.2 that working fine.
>>>> Here is demo <http://13.127.38.120/PayUmoney>
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>>
>>>> On Sat, Dec 15, 2018 at 1:32 PM Arindam Dasgupta <
>>>> nyn.dasgu...@gmail.com> wrote:
>>>>
>>>>> Hi Sandeep,
>>>>>
>>>>> I installed the app in pythonanywhere cloud and tried to view the
>>>>> index.html file. it said :Requires web2py 2.15.5 or newer
>>>>>
>>>>> Then I commented out the below two lines from db.py and tried again.
>>>>> But then it gave errors:
>>>>> if request.global_settings.web2py_version < "2.15.5":
>>>>>   raise HTTP(500, "Requires web2py 2.15.5 or newer")
>>>>>
>>>>> Error ticket for "payumoney"Ticket ID
>>>>>
>>>>> 42.110.131.171.2018-12-15.07-55-13.2cbcd4c5-a853-4a8c-a2d5-e268448066da
>>>>>  unsupported pickle protocol: 3Version
>>>>> web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
>>>>> Python Python 2.7.6: /usr/local/bin/uwsgi (prefix: /usr)Traceback
>>>>>
>>>>> 1.
>>>>> 2.
>>>>> 3.
>>>>> 4.
>>>>> 5.
>>>>> 6.
>>>>> 7.
>>>>> 8.
>>>>> 9.
>>>>> 10.
>>>>> 11.
>>>>> 12.
>>>>> 13.
>>>>> 14.
>>>>> 15.
>>>>>
>>>>> Traceback (most recent call last):
>>>>>   File "/home/earinda/FarmFresh/gluon/restricted.py", line 227, in 
>>>>> restricted
>>>>> exec ccode in environment
>>>>>   File "/home/earinda/FarmFresh/applications/payumoney/models/db.py" 
>>>>> <https://www.pixmate.online/admin/default/edit/payumoney/models/db.py>, 
>>>>> line 95, in 
>>>>> auth.define_tables(username=False, signature=False)
>>>>>   File "/home/earinda/FarmFresh/gluon/tools.py", line 2376, in 
>>>>> define_tables
>>>>> format='%(first_name)s %(last_name)s (%(id)s)'))
>>>>>   File "/home/earinda/FarmFresh/gluon/packages/dal/pydal/base.py", line 
>>>>> 834, in define_table
>>>>> table = self.lazy_define_table(tablename,*fields,**args)
>>>>>   File "/home/earinda/FarmFresh/gluon/packages/dal/pydal/base.py", line 
>>>>> 873, in lazy_define_table
>>>>> polymodel=polymodel)
>>>>>   File 
>>>>> "/home/earinda/FarmFresh/gluon/packages/dal/pydal/adapters/

Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-18 Thread Arindam Dasgupta
Hi Sandeep,

I have used your method and used the following ids :
def index():
MERCHANT_KEY = "hKiHd2aX"
key="hKiHd2aX"
SALT = "byRHoBc0pq"
PAYU_BASE_URL = "https://sandboxsecure.payu.in/_payment";

The code is working only when MERCHANT_KEY=key. But in your mail it seemed
that MERCHANT_KEY and key are different things. From payumoney I got a
merchant ID (like 6130012), merchant key and a salt.

The test transaction is completing (I am also getting an SMS) and it is
taking me to the success page. But I am getting a ticket in the success
page. And if I click the ticket I am getting a blank page. I cannot figure
out what is wrong.. I have not changed any code I just put the correct IDs
and the name/ email/ phone no. etc. Please help.
And yes, My website is http and not https yet.

[image: image.png]

BR//Arindam




On Sun, Dec 16, 2018 at 8:45 PM sandeep patel 
wrote:

> @Lovedie,
> This app generated with python3 so if you are directly installing that app
> from git in your application folder then this will raise an error.
> If you want to use with Python 2.7. these are the following steps.
> 1. Create a new app in your web2py environment.
> 2. Copy index, success, and failure function form git
> <https://github.com/coodblooded/Web2py-PayUmoney/blob/master/controllers/default.py>
> and import also required the library too.
> 3. Downloads
> <https://github.com/coodblooded/Web2py-PayUmoney/tree/master/views/default>
> index, success, and failure file from git and past your /view/default
> folder.
> 4. Change MERCHANT_KEY, Key, SALT with real ids
>
> Now Payment Gateway will work.
>
> Thanks
> Sandeep Patel
>
>
> On Sun, Dec 16, 2018 at 3:32 PM Lovedie JC  wrote:
>
>> What about python 2.7 compatibility
>>
>> On Sat, 15 Dec 2018 at 15:02, Arindam Dasgupta 
>> wrote:
>>
>>> Hi sandeep,
>>> At last I have figured it out myself and the python version is now 3.6.0
>>> And after this change your payumoney app is also running. :-)
>>> Thanks.
>>>
>>> [image: image.png]
>>>
>>> On Sat, Dec 15, 2018 at 3:21 PM Arindam Dasgupta 
>>> wrote:
>>>
>>>> Hi I backed up my apps and clicked on the upgrade button. The result is
>>>> that web2py version got changed to 2.17.2 but python version is still
>>>> 2.7.6. Now how to upgrade to python 3.6.6 Please don't answer my question
>>>> today. Because I know it is too much for today . :-)
>>>>
>>>> [image: image.png]
>>>>
>>>> On Sat, Dec 15, 2018 at 2:35 PM sandeep patel <
>>>> patelsandeep...@gmail.com> wrote:
>>>>
>>>>> Currently, you are using python 2.7.6 and web2py 2.14.6 version.
>>>>> I have tested this app on python3.6.6 and web2py 2.16.1 and 2.17.2.
>>>>>
>>>>> You can upgrade directly by clicking on the button(upgrade new to
>>>>> version 2.17.2).
>>>>> But be careful first take back-up of your apps :)
>>>>>
>>>>> Thanks/
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Dec 15, 2018 at 2:03 PM Arindam Dasgupta <
>>>>> nyn.dasgu...@gmail.com> wrote:
>>>>>
>>>>>> Hi Sandeep,
>>>>>> In my pythonanywhere page I can see the following version . So my
>>>>>> version is 2.7.6 or 2.14.6 ?
>>>>>> Now I am getting a upgrade option here to version 2.17.2 but it is
>>>>>> telling that is is an experimental one. So how do I upgrade it to one of
>>>>>> your version ( 2.16.1 or 2.17.2). And also I I do, then will my existing
>>>>>> apps be still there or I will have to reinstall them?
>>>>>> Sorry If I am asking too much questions. Thanks in advance. :-)
>>>>>>
>>>>>>
>>>>>> [image: image.png]
>>>>>>
>>>>>> On Sat, Dec 15, 2018 at 1:43 PM sandeep patel <
>>>>>> patelsandeep...@gmail.com> wrote:
>>>>>>
>>>>>>> I think this error getting because of version. I have tested on both
>>>>>>> versions 2.16.1 and 2.17.2 that working fine.
>>>>>>> Here is demo <http://13.127.38.120/PayUmoney>
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>

Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-18 Thread Arindam Dasgupta
Hi Sandeep,
The payment gateway worked after I used an "https" site. However I have
some doubts :
1) I have to press the pay now button twice to get it working. What should
I change so that one press is sufficient?
2) I had to modify the return statement of success function the following
way because success.html is using a variable "c" which is not returned from
the function leading to a error :

return dict(txnid=txnid,status=status,amount=amount,c=c)
3) There are some print statements in the success function. But where it is
printing these lines..?
 print ("Thank You. Your order status is ", status)

And Thank you truly for the help you did to me. :-)

Best Regards,
Arindam

On Tue, Dec 18, 2018 at 10:38 PM sandeep patel 
wrote:

> Yes, Arindam  MERCHANT_KEY  and Key both are the same. when you clicked on
> Internal error link than* Admin is disabled because insecure channel*
> message is shown in your browser because of your URL not secure.
>
> you can test on localhost URL instead of this.
>
>
> Thanks
> SP
>
>
>
> On Tue, Dec 18, 2018 at 9:50 PM Arindam Dasgupta 
> wrote:
>
>> Hi Sandeep,
>>
>> I have used your method and used the following ids :
>> def index():
>> MERCHANT_KEY = "hKiHd2aX"
>> key="hKiHd2aX"
>> SALT = "byRHoBc0pq"
>> PAYU_BASE_URL = "https://sandboxsecure.payu.in/_payment";
>>
>> The code is working only when MERCHANT_KEY=key. But in your mail it
>> seemed that MERCHANT_KEY and key are different things. From payumoney I got
>> a merchant ID (like 6130012), merchant key and a salt.
>>
>> The test transaction is completing (I am also getting an SMS) and it is
>> taking me to the success page. But I am getting a ticket in the success
>> page. And if I click the ticket I am getting a blank page. I cannot figure
>> out what is wrong.. I have not changed any code I just put the correct IDs
>> and the name/ email/ phone no. etc. Please help.
>> And yes, My website is http and not https yet.
>>
>> [image: image.png]
>>
>> BR//Arindam
>>
>>
>>
>>
>> On Sun, Dec 16, 2018 at 8:45 PM sandeep patel 
>> wrote:
>>
>>> @Lovedie,
>>> This app generated with python3 so if you are directly installing that
>>> app from git in your application folder then this will raise an error.
>>> If you want to use with Python 2.7. these are the following steps.
>>> 1. Create a new app in your web2py environment.
>>> 2. Copy index, success, and failure function form git
>>> <https://github.com/coodblooded/Web2py-PayUmoney/blob/master/controllers/default.py>
>>> and import also required the library too.
>>> 3. Downloads
>>> <https://github.com/coodblooded/Web2py-PayUmoney/tree/master/views/default>
>>> index, success, and failure file from git and past your /view/default
>>> folder.
>>> 4. Change MERCHANT_KEY, Key, SALT with real ids
>>>
>>> Now Payment Gateway will work.
>>>
>>> Thanks
>>> Sandeep Patel
>>>
>>>
>>> On Sun, Dec 16, 2018 at 3:32 PM Lovedie JC  wrote:
>>>
>>>> What about python 2.7 compatibility
>>>>
>>>> On Sat, 15 Dec 2018 at 15:02, Arindam Dasgupta 
>>>> wrote:
>>>>
>>>>> Hi sandeep,
>>>>> At last I have figured it out myself and the python version is now
>>>>> 3.6.0
>>>>> And after this change your payumoney app is also running. :-)
>>>>> Thanks.
>>>>>
>>>>> [image: image.png]
>>>>>
>>>>> On Sat, Dec 15, 2018 at 3:21 PM Arindam Dasgupta <
>>>>> nyn.dasgu...@gmail.com> wrote:
>>>>>
>>>>>> Hi I backed up my apps and clicked on the upgrade button. The result
>>>>>> is that web2py version got changed to 2.17.2 but python version is still
>>>>>> 2.7.6. Now how to upgrade to python 3.6.6 Please don't answer my question
>>>>>> today. Because I know it is too much for today . :-)
>>>>>>
>>>>>> [image: image.png]
>>>>>>
>>>>>> On Sat, Dec 15, 2018 at 2:35 PM sandeep patel <
>>>>>> patelsandeep...@gmail.com> wrote:
>>>>>>
>>>>>>> Currently, you are using python 2.7.6 and web2py 2.14.6 version.
>>>>>>> I have tested this app on python3.6.6 and web2py 2.16.1 and 2.17.2.
>>>>>>>
>>>>>>> You can 

[web2py] what is the webserver software of pythonanywhere

2018-12-19 Thread Arindam Dasgupta
Hi,

I need to have a ssl certificate for my webserver. So that the certificate
vendor needs  the webserver software. Please help me to find it out. I am
presented with a list like below :
Where should I look for it in pythonanywhere.com ?
[image: image.png]

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-19 Thread Arindam Dasgupta
Hi Stifan,

Not I did not put web2py server on windows. I am using python anywhere
cloud :

https://nayan613.pythonanywhere.com/paymemoney/default/index

Regards,
Arindam

On Wed, Dec 19, 2018 at 3:00 PM 黄祥  wrote:

> 1) I have to press the pay now button twice to get it working. What should
>> I change so that one press is sufficient?
>>
>
> did you put web2py server on windows ?
>
> best regards,
> stifan
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] what is the webserver software of pythonanywhere

2018-12-19 Thread Arindam Dasgupta
Hi Ben,

Thank you so much!!

Regards,
Arindam

On Wed, Dec 19, 2018 at 9:04 PM Ben Duncan  wrote:

> SEE:
>
> https://www.pythonanywhere.com/forums/topic/2776/
>
> *Ben Duncan*
> DBA / Chief Software Architect
> Mississippi State Supreme Court
> Electronic Filing Division
>
>
> On Wed, Dec 19, 2018 at 3:15 AM Arindam Dasgupta 
> wrote:
>
>> Hi,
>>
>> I need to have a ssl certificate for my webserver. So that the
>> certificate vendor needs  the webserver software. Please help me to find it
>> out. I am presented with a list like below :
>> Where should I look for it in pythonanywhere.com ?
>> [image: image.png]
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] How yo upload a file in folder www.mydomain/myfolder/myfile.test

2018-12-20 Thread Arindam Dasgupta
Hi,

Some ssl certificate issuing websites requires a file to be uploaded in my
server. They will give me the file "myfile.txt" and tell it to upload it
into a folder called "myfolder".So that they can access it
using" www.mydomain/myfolder/myfile.txt".

Say I have purchased a domain www.pixmate.online and whenever i put it in a
web browser it till open the web page "
https://www.pixmate.online/welcome/default/index";.

So my question is where do i put myfile.txt on the file system of
pythonanywhere.com so that it will be accessible to the verifier on "
www.pixmate.online/ myfolder/myfile.txt" ?

Regards,
Arindam

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-20 Thread Arindam Dasgupta
Hi,

Have you had some time to look at the issue as to why I need to click two
times in the Pay Now button to make the transactions?

Best Regards,
Arindam


On Wed, Dec 19, 2018 at 4:27 PM Arindam Dasgupta 
wrote:

> Hi Stifan,
>
> Not I did not put web2py server on windows. I am using python anywhere
> cloud :
>
> https://nayan613.pythonanywhere.com/paymemoney/default/index
>
> Regards,
> Arindam
>
> On Wed, Dec 19, 2018 at 3:00 PM 黄祥  wrote:
>
>> 1) I have to press the pay now button twice to get it working. What
>>> should I change so that one press is sufficient?
>>>
>>
>> did you put web2py server on windows ?
>>
>> best regards,
>> stifan
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-21 Thread Arindam Dasgupta
Sandeep,

Thank you so much. I will check this and let you know the results.
No matter how much I appreciate you it will never be sufficient!! Thanks a
lot.

Regards,
Arindam

On Fri, Dec 21, 2018 at 11:17 AM sandeep patel 
wrote:

> @Arindas,
> I have updated default.py and index.html in the git repository
> <https://github.com/coodblooded/Web2py-PayUmoney>. Please check it.
> Now transactions make in one click and Even you can change user info and
> pricing programmatically in a wen2py way.
>
> Let me know if you have any questions
>
> Thanks
> Sp/
>
>
> On Fri, Dec 21, 2018 at 12:32 AM Arindam Dasgupta 
> wrote:
>
>> Hi,
>>
>> Have you had some time to look at the issue as to why I need to click two
>> times in the Pay Now button to make the transactions?
>>
>> Best Regards,
>> Arindam
>>
>>
>> On Wed, Dec 19, 2018 at 4:27 PM Arindam Dasgupta 
>> wrote:
>>
>>> Hi Stifan,
>>>
>>> Not I did not put web2py server on windows. I am using python anywhere
>>> cloud :
>>>
>>> https://nayan613.pythonanywhere.com/paymemoney/default/index
>>>
>>> Regards,
>>> Arindam
>>>
>>> On Wed, Dec 19, 2018 at 3:00 PM 黄祥  wrote:
>>>
>>>> 1) I have to press the pay now button twice to get it working. What
>>>>> should I change so that one press is sufficient?
>>>>>
>>>>
>>>> did you put web2py server on windows ?
>>>>
>>>> best regards,
>>>> stifan
>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Coding window is disabled

2018-12-21 Thread Arindam Dasgupta
Hi,

I dont know what happened to my coding window. I cannot save anything and
it is looking different. Please see the snapshot below. How can I make it
normal again ?
[image: image.png]
Best Regards,
Arindam Dasgupta

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-22 Thread Arindam Dasgupta
Hi Sandeep,
I am facing a serious problem while using this app. It is automatically
loging me out of the application after making the payment and reaching the
success page. Due to this i am not able to use session.auth.user.id
variable from the success page. Do you have a solution for this?
Thanks.Arindam.
On 21 Dec 2018 17:37, "Arindam Dasgupta"  wrote:

> Sandeep,
>
> Thank you so much. I will check this and let you know the results.
> No matter how much I appreciate you it will never be sufficient!! Thanks a
> lot.
>
> Regards,
> Arindam
>
> On Fri, Dec 21, 2018 at 11:17 AM sandeep patel 
> wrote:
>
>> @Arindas,
>> I have updated default.py and index.html in the git repository
>> <https://github.com/coodblooded/Web2py-PayUmoney>. Please check it.
>> Now transactions make in one click and Even you can change user info and
>> pricing programmatically in a wen2py way.
>>
>> Let me know if you have any questions
>>
>> Thanks
>> Sp/
>>
>>
>> On Fri, Dec 21, 2018 at 12:32 AM Arindam Dasgupta 
>> wrote:
>>
>>> Hi,
>>>
>>> Have you had some time to look at the issue as to why I need to click
>>> two times in the Pay Now button to make the transactions?
>>>
>>> Best Regards,
>>> Arindam
>>>
>>>
>>> On Wed, Dec 19, 2018 at 4:27 PM Arindam Dasgupta 
>>> wrote:
>>>
>>>> Hi Stifan,
>>>>
>>>> Not I did not put web2py server on windows. I am using python anywhere
>>>> cloud :
>>>>
>>>> https://nayan613.pythonanywhere.com/paymemoney/default/index
>>>>
>>>> Regards,
>>>> Arindam
>>>>
>>>> On Wed, Dec 19, 2018 at 3:00 PM 黄祥 
>>>> wrote:
>>>>
>>>>> 1) I have to press the pay now button twice to get it working. What
>>>>>> should I change so that one press is sufficient?
>>>>>>
>>>>>
>>>>> did you put web2py server on windows ?
>>>>>
>>>>> best regards,
>>>>> stifan
>>>>>
>>>>> --
>>>>> Resources:
>>>>> - http://web2py.com
>>>>> - http://web2py.com/book (Documentation)
>>>>> - http://github.com/web2py/web2py (Source code)
>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "web2py-users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-22 Thread Arindam Dasgupta
Hi,

I just found that I am not facing the logout issue in web2py version 2.17.1
with python version 3.6.6.  Whereas when I am using 2.17.2 and python
version 3.6.0 , I am facing the logout issue after payment. I there a way
to downgrade the web2py version to 2.17.1?

[image: image.png]
Regards,
Arindam

On Sat, Dec 22, 2018 at 2:16 PM Arindam Dasgupta 
wrote:

> Hi Sandeep,
> I am facing a serious problem while using this app. It is automatically
> loging me out of the application after making the payment and reaching the
> success page. Due to this i am not able to use session.auth.user.id
> variable from the success page. Do you have a solution for this?
> Thanks.Arindam.
> On 21 Dec 2018 17:37, "Arindam Dasgupta"  wrote:
>
>> Sandeep,
>>
>> Thank you so much. I will check this and let you know the results.
>> No matter how much I appreciate you it will never be sufficient!! Thanks
>> a lot.
>>
>> Regards,
>> Arindam
>>
>> On Fri, Dec 21, 2018 at 11:17 AM sandeep patel 
>> wrote:
>>
>>> @Arindas,
>>> I have updated default.py and index.html in the git repository
>>> <https://github.com/coodblooded/Web2py-PayUmoney>. Please check it.
>>> Now transactions make in one click and Even you can change user info and
>>> pricing programmatically in a wen2py way.
>>>
>>> Let me know if you have any questions
>>>
>>> Thanks
>>> Sp/
>>>
>>>
>>> On Fri, Dec 21, 2018 at 12:32 AM Arindam Dasgupta <
>>> nyn.dasgu...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Have you had some time to look at the issue as to why I need to click
>>>> two times in the Pay Now button to make the transactions?
>>>>
>>>> Best Regards,
>>>> Arindam
>>>>
>>>>
>>>> On Wed, Dec 19, 2018 at 4:27 PM Arindam Dasgupta <
>>>> nyn.dasgu...@gmail.com> wrote:
>>>>
>>>>> Hi Stifan,
>>>>>
>>>>> Not I did not put web2py server on windows. I am using python anywhere
>>>>> cloud :
>>>>>
>>>>> https://nayan613.pythonanywhere.com/paymemoney/default/index
>>>>>
>>>>> Regards,
>>>>> Arindam
>>>>>
>>>>> On Wed, Dec 19, 2018 at 3:00 PM 黄祥 
>>>>> wrote:
>>>>>
>>>>>> 1) I have to press the pay now button twice to get it working. What
>>>>>>> should I change so that one press is sufficient?
>>>>>>>
>>>>>>
>>>>>> did you put web2py server on windows ?
>>>>>>
>>>>>> best regards,
>>>>>> stifan
>>>>>>
>>>>>> --
>>>>>> Resources:
>>>>>> - http://web2py.com
>>>>>> - http://web2py.com/book (Documentation)
>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "web2py-users" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to web2py+unsubscr...@googlegroups.com.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-22 Thread Arindam Dasgupta
Hi Stifan,

I have already web2py 2.17.2 installed and I dont have a option to select
python 3.6.6. In the list it is displaying only 3.6 and if i select it it
is displaying 3.6.0.

[image: image.png]

On Sat, Dec 22, 2018 at 5:52 PM 黄祥  wrote:

> had you try using 2.17.2 and python version 3.6.6 ?
>
> best regards,
> stifan
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-22 Thread Arindam Dasgupta
Hi ,
Both is contained in one app. Working fine in 2.17.1 and python version
3.6.6. But not working (logging me out after payment) in 2.17.2 and python
version 3.6.0.

Thanks.
On 22 Dec 2018 18:52, "sandeep patel"  wrote:

> @Arindas,
> Are you using one app for Payment and one app for a web application or
> both of contains in one app?
>
> Thanks
>
>
> On Sat, Dec 22, 2018 at 6:10 PM Arindam Dasgupta 
> wrote:
>
>> Hi Stifan,
>>
>> I have already web2py 2.17.2 installed and I dont have a option to select
>> python 3.6.6. In the list it is displaying only 3.6 and if i select it it
>> is displaying 3.6.0.
>>
>> [image: image.png]
>>
>> On Sat, Dec 22, 2018 at 5:52 PM 黄祥  wrote:
>>
>>> had you try using 2.17.2 and python version 3.6.6 ?
>>>
>>> best regards,
>>> stifan
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-22 Thread Arindam Dasgupta
Hi, I figured out that the problem i mentioned is due to the web2py version
only. I need to downgrade it to 2.17.1 . But i dont know how. Transferring
the whole app to a different pythonanywhere account is an option. But that
road is blocked too as i just bought an ssl certificate for this account.

Br//Arindam
On 22 Dec 2018 19:57, "Arindam Dasgupta"  wrote:

> Hi ,
> Both is contained in one app. Working fine in 2.17.1 and python version
> 3.6.6. But not working (logging me out after payment) in 2.17.2 and python
> version 3.6.0.
>
> Thanks.
> On 22 Dec 2018 18:52, "sandeep patel"  wrote:
>
>> @Arindas,
>> Are you using one app for Payment and one app for a web application or
>> both of contains in one app?
>>
>> Thanks
>>
>>
>> On Sat, Dec 22, 2018 at 6:10 PM Arindam Dasgupta 
>> wrote:
>>
>>> Hi Stifan,
>>>
>>> I have already web2py 2.17.2 installed and I dont have a option to
>>> select python 3.6.6. In the list it is displaying only 3.6 and if i select
>>> it it is displaying 3.6.0.
>>>
>>> [image: image.png]
>>>
>>> On Sat, Dec 22, 2018 at 5:52 PM 黄祥  wrote:
>>>
>>>> had you try using 2.17.2 and python version 3.6.6 ?
>>>>
>>>> best regards,
>>>> stifan
>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Male file upload optional_SQLFORM

2019-01-02 Thread Arindam Dasgupta
Hi Greetings for the new year!!

I recently ran into a problem. I need to make fileupload field in SQLFORM
optional How can I do that ?

My Model:

db.define_table('rates_frames',

Field('frame_size'  type='string' ),
Field('frame_id' , type='string'),
Field('frame_pic','upload',autodelete=True),
Field('unit_price',type='float')

)

My Controller:

form = SQLFORM(db. rates_frames  , submit_button=T('CLICK HERE TO MOVE ITEM
TO CART'))


Tnanks in advance,
Arindam

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Male file upload optional_SQLFORM

2019-01-02 Thread Arindam Dasgupta
Thanks Steve!! That was a lot of help for me and I solved my issue with
that.

BR//Arindam

On Wed, Jan 2, 2019 at 5:00 PM 黄祥  wrote:

> not sure what do you mean with optional, there is fields in SQLFORM
> constructor
> another way is using conditonal fields (show_if)
>
> *ref:*
> http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM
>
> http://web2py.com/books/default/chapter/29/07/forms-and-validators#Conditional-fields
>
> best regards,
> stifan
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Check an empty upload field in database

2019-01-11 Thread Arindam Dasgupta
Hi,

I have a problem with checking whether the file upload field in the
database is empty or not.
In the code mentioned below, the user can either upload a file or submit
the form without uploading a file.
If the user uploads a file then the " makeThumbnail" function should be
called. Otherwise it shouldn't be called.
The statement like  if   db.orders.pic_upload !="": is not working. What is
the right way of achieve this ? Thanks in advance!!

My Model

db.define_table('orders',
Field('item_type' ,type='string',default='--'),

Field('pic_upload' ,'upload',autodelete=True),

Field('thumb','upload',writable=False,readable=False,autodelete=True),

auth.signature
)


My Controller
--
form = SQLFORM(db.orders)

 if form.process().accepted:

if   db.orders.pic_upload !="":
 makeThumbnail(db.orders,form.vars.id,(175,175))
 else:
   response.flash = 'form has errors'




Best Regards,
Arindam

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Check an empty upload field in database

2019-01-11 Thread Arindam Dasgupta
Hi,

The syntax  if form.vars.pic_upload:  worked for me. I was not able to find
the correct If statement.
@ Steve : No I have not used the IS_NOT_EMPTY() validator. Thanks for the
link I will go through it.

Regards,
Arindam

On Fri, Jan 11, 2019 at 6:20 PM 黄祥  wrote:

> had you try IS_NOT_EMPTY() validator?
>
> *ref:*
>
> http://web2py.com/books/default/chapter/29/07/forms-and-validators#Range-set-and-equality-validators
>
> best regards,
> stifan
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Cannot see auth.signature fields in SQLFORM.grid

2019-01-18 Thread Arindam Dasgupta
Hi,
I am trying to make a management interface for a table called orders with
SQLFORM.grid. But it is not showing the User signature fields in the result.

Here's what I mean :

My Model:
--
db.define_table('placed_orders',

Field('order_id' , type='integer' , default=1),
Field('price_of_items' , type='float' , default=1),
Field('delivery_charge' , type='float' , default=1),

auth.signature
)

My Controller:
---
@auth.requires_membership('managers')
def manage_site():

table = request.args(0)
if not table in db.tables(): redirect(URL('error'))
grid = SQLFORM.grid(db.placed_orders)

return locals()

My View:
--

{{=grid}}


Now, When I see the view page it is displaying the all fields except the
fields which is auto created by "auth.signature" .

Fields I can see:
 order_id , price_of_items , delivery_charge
Fields I cannot see but exists :
 is_active ,created_on ,  created_by  ,  modified_on  , modified_by
How can I solve this issue?
I am also attaching a sample export of my database.


Thanks in advance !!

Regards,
Arindam Dasgupta

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


db_placed_orders.csv
Description: MS-Excel spreadsheet


Re: [web2py] Re: Cannot see auth.signature fields in SQLFORM.grid

2019-01-19 Thread Arindam Dasgupta
Thank you Dave and Anthony for your help. That really solved my problem.
This community is simply awesome.

Best Regards,
Arindam


On Sat, Jan 19, 2019 at 8:07 PM Anthony  wrote:

> They are not hidden fields in that sense (i.e., added to forms with the
> "hidden" attribute), but rather they simply default to "readable" and
> "writable" being False, which means they are excluded from grids and forms.
>
> To show the fields, you can do:
>
> db.mytable.created_on.readable = True
> [same for the other fields]
>
> Or more simply:
>
> for field in auth.signature.fields:
> if field != 'id':
> db.mytable[field].readable = True
>
> Alternatively, you can list all fields you want to display in the grid
> using the "fields" argument, and I believe this will override the
> "readable" attribute (there is a separate "listable" attribute that is
> checked, but that should be True for the auth.signature fields).
>
> Anthony
>
> On Friday, January 18, 2019 at 4:10:12 PM UTC-5, Dave S wrote:
>>
>>
>>
>> On Friday, January 18, 2019 at 4:01:59 AM UTC-8, Arindam Dasgupta wrote:
>>>
>>> Hi,
>>> I am trying to make a management interface for a table called orders
>>> with SQLFORM.grid. But it is not showing the User signature fields in the
>>> result.
>>>
>>> Here's what I mean :
>>>
>>> My Model:
>>> --
>>> db.define_table('placed_orders',
>>>
>>> Field('order_id' , type='integer' , default=1),
>>> Field('price_of_items' , type='float' , default=1),
>>> Field('delivery_charge' , type='float' , default=1),
>>>
>>> auth.signature
>>> )
>>>
>>> My Controller:
>>> ---
>>> @auth.requires_membership('managers')
>>> def manage_site():
>>>
>>> table = request.args(0)
>>> if not table in db.tables(): redirect(URL('error'))
>>> grid = SQLFORM.grid(db.placed_orders)
>>>
>>> return locals()
>>>
>>> My View:
>>> --
>>>
>>> {{=grid}}
>>>
>>>
>>> Now, When I see the view page it is displaying the all fields except the
>>> fields which is auto created by "auth.signature" .
>>>
>>> Fields I can see:
>>>  order_id , price_of_items , delivery_charge
>>> Fields I cannot see but exists :
>>>  is_active ,created_on ,  created_by  ,  modified_on  ,
>>> modified_by
>>> How can I solve this issue?
>>> I am also attaching a sample export of my database.
>>>
>>>
>>> Thanks in advance !!
>>>
>>> Regards,
>>> Arindam Dasgupta
>>>
>>>
>> Aren't those hidden fields, so not normally displayed in views?
>>
>> > http://web2py.com/books/default/chapter/29/07/forms-and-validators#Hidden-fields
>> >
>>
>> /dps
>>
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Need to change text Size of the header

2019-02-09 Thread Arindam Dasgupta
Hi Lionel,
Thanks for your reply. But I cannot understand how to do that in this case.
Can you please give me some more details ?

Thanks a lot.


Redards,
Arindam

On Feb 9, 2019 8:02 PM, "Leonel Câmara"  wrote:

The simplest way is to add another css file to your project after bootstrap
and put the styles there.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Need to change text Size of the header

2019-02-10 Thread Arindam Dasgupta
Hi Sandeep,

As always, Thank you so much.

I still need to know where do I use these classes in the layout file. The
following codes in the layout file is controlling the navigation bar. How
do I use the classes you mentioned above? Once again I am attaching the
layout file.

I am sorry if the question is too silly!.



  

  
Toggle navigation



  
  {{=response.logo or ''}}


  
{{='auth' in globals() and
auth.navbar('Welcome',mode='dropdown') or ''}}
  
  {{if response.menu:}}
  {{=MENU(response.menu, _class='nav
navbar-nav',li_class='dropdown',ul_class='dropdown-menu')}}
  {{pass}}

  


On Sun, Feb 10, 2019 at 10:23 AM sandeep patel 
wrote:

> @ Arindam,
> Lionel says that create a new .css and store in static/css folder and add
> that path in the layout.html file. Add that path after bootstrap.css
> Even you can directly put a style tag in the layout.html file. Style tag
> will be inside the end of the head tag. Change the font size according to
> your necessity
> You can do this way.
>
> 
>
> 
> 
>href="{{=URL('static','css/bootstrap-4-navbar.css')}}"/>
>  type="image/x-icon">
> 
>
>   
> .nav-item > .nav-link{
> font-size: 20px;
>
> } 
>
> 
>
> Thanks
>
> SP
>
>
> On Sun, Feb 10, 2019 at 9:46 AM Arindam Dasgupta 
> wrote:
>
>> Hi Lionel,
>> Thanks for your reply. But I cannot understand how to do that in this
>> case.
>> Can you please give me some more details ?
>>
>> Thanks a lot.
>>
>>
>> Redards,
>> Arindam
>>
>> On Feb 9, 2019 8:02 PM, "Leonel Câmara"  wrote:
>>
>> The simplest way is to add another css file to your project after
>> bootstrap and put the styles there.
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  
  






{{=response.title or request.application}}













{{include 'web2py_ajax.html'}} 
{{block head}}{{end}}
{{
# using sidebars need to know what sidebar you want to use
mc0 = 'col-md-12'
mc1 = 'col-md-9'
mc2 = 'col-md-6'
left_sidebar_enabled = globals().get('left_sidebar_enabled', False)
right_sidebar_enabled = globals().get('right_sidebar_enabled', False)
middle_column = {0: mc0, 1: mc1, 2: mc2}[
(left_sidebar_enabled and 1 or 0)

Re: [web2py] Re: Need to change text Size of the header

2019-02-11 Thread Arindam Dasgupta
Thanks Sandeep. That solved my problem. :-)

Besr Regards,
Arindam Dasgupta

On Sun, Feb 10, 2019 at 4:20 PM sandeep patel 
wrote:

> @Arindas
> Please see an attached layout.html file. You get the idea.
>
>
> Thanks
> SP
>
> On Sun, Feb 10, 2019 at 2:00 PM Arindam Dasgupta 
> wrote:
>
>> Hi Sandeep,
>>
>> As always, Thank you so much.
>>
>> I still need to know where do I use these classes in the layout file. The
>> following codes in the layout file is controlling the navigation bar. How
>> do I use the classes you mentioned above? Once again I am attaching the
>> layout file.
>>
>> I am sorry if the question is too silly!.
>>
>> 
>> > role="navigation">
>>   
>> 
>>   > data-toggle="collapse" data-target=".navbar-collapse">
>> Toggle navigation
>> 
>> 
>> 
>>   
>>   {{=response.logo or ''}}
>> 
>> 
>>   
>> {{='auth' in globals() and
>> auth.navbar('Welcome',mode='dropdown') or ''}}
>>   
>>   {{if response.menu:}}
>>   {{=MENU(response.menu, _class='nav
>> navbar-nav',li_class='dropdown',ul_class='dropdown-menu')}}
>>   {{pass}}
>> 
>>   
>> 
>>
>> On Sun, Feb 10, 2019 at 10:23 AM sandeep patel 
>> wrote:
>>
>>> @ Arindam,
>>> Lionel says that create a new .css and store in static/css folder and
>>> add that path in the layout.html file. Add that path after bootstrap.css
>>> Even you can directly put a style tag in the layout.html file. Style tag
>>> will be inside the end of the head tag. Change the font size according to
>>> your necessity
>>> You can do this way.
>>>
>>> 
>>>
>>> 
>>> >> href="{{=URL('static','css/web2py-bootstrap4.css')}}"/>
>>>   >> href="{{=URL('static','css/bootstrap-4-navbar.css')}}"/>
>>> >> type="image/x-icon">
>>> 
>>>
>>>   
>>> .nav-item > .nav-link{
>>> font-size: 20px;
>>>
>>> } 
>>>
>>> 
>>>
>>> Thanks
>>>
>>> SP
>>>
>>>
>>> On Sun, Feb 10, 2019 at 9:46 AM Arindam Dasgupta 
>>> wrote:
>>>
>>>> Hi Lionel,
>>>> Thanks for your reply. But I cannot understand how to do that in this
>>>> case.
>>>> Can you please give me some more details ?
>>>>
>>>> Thanks a lot.
>>>>
>>>>
>>>> Redards,
>>>> Arindam
>>>>
>>>> On Feb 9, 2019 8:02 PM, "Leonel Câmara"  wrote:
>>>>
>>>> The simplest way is to add another css file to your project after
>>>> bootstrap and put the styles there.
>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source co

[web2py] Need a tutorial on py4web

2019-09-26 Thread Arindam Dasgupta
Hi All,
I have some experience in web2py. Now since py4web is out in the market , I
am trying to migrate to the new framework. But I am not able to find proper
tutorial in Udemy or Pluralsight. Please suggest me some tutorial on py4web.

Thanks in Advance.

Regards,
Arindam Dasgupta

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAnzvyRHjP-7eSUqVnnRPFMB20TKom7%2BVUvu-Aygqtamc5WtKA%40mail.gmail.com.


Re: [web2py] Re: Need a tutorial on py4web

2019-09-27 Thread Arindam Dasgupta
Thanks, I will check the documentation.

Regards,
Arindam

On Sep 27, 2019 9:52 AM, "Massimo Di Pierro" 
wrote:

> It does not exist but we have documentation on the web site. Should be
> enough to start
>
> On Thursday, 26 September 2019 02:26:46 UTC-7, Arindam Dasgupta wrote:
>>
>> Hi All,
>> I have some experience in web2py. Now since py4web is out in the market ,
>> I am trying to migrate to the new framework. But I am not able to find
>> proper tutorial in Udemy or Pluralsight. Please suggest me some tutorial on
>> py4web.
>>
>> Thanks in Advance.
>>
>> Regards,
>> Arindam Dasgupta
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/web2py/acabfd65-c46c-47a1-882f-0d0ec2676bf6%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/acabfd65-c46c-47a1-882f-0d0ec2676bf6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAnzvySQ8OD4bS4-vk32E-44TO-8-jZTSf%2Bv%3DxbbTx_QxBfDEA%40mail.gmail.com.