[web2py] class being inserted behind my back..!

2015-10-10 Thread Edward Shave
I make a button including two classes, btn and btn-primary.
The button shows up OK but the text looks horrible.
Upon inspection I find an extra class (btn-default) has been included..!
What's up guys?


{{extend 'layout.html'}}
This text looks horrible


-- 
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] recent examples of Paypal integration?

2015-10-10 Thread Alex Glaros
anyone have recent example of Paypal integration that works with current 
Paypal methods?

thanks

Alex Glaros

-- 
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: add extra fields in auth.user

2015-10-10 Thread Leonel Câmara
You're calling auth.define_tables twice. You should only call it once and 
only after the extra_fields definition.

-- 
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] Redis cluster

2015-10-10 Thread Luis Valladares
Hello!

I was wondering if exist any implementation or experiencies with redis 
cluster in web2py? i googled this but cant found anything

Here is a link explaining what is redis cluster: 
http://redis.io/topics/cluster-tutorial

Thanks for your help!

-- 
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: Don't laugh but I like the admin editor ;o)

2015-10-10 Thread Edward Shave
Seems search and replace doesn't work..!  How disappointing. 

-- 
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: Don't laugh but I like the admin editor ;o)

2015-10-10 Thread Edward Shave
Following Anthiony's links I quickly came across this file...

\applications\admin\views\default\editor_shortcuts.html"

which contais the following...


{{=T("Keyboard shortcuts")}}


{{=shortcut('Ctrl+S', T('Save via Ajax'))}}
{{=shortcut('Ctrl+F11', T('Toggle Fullscreen'))}}
 {{=shortcut('Shift+Esc', T('Exit Fullscreen'))}}
{{=shortcut('Ctrl-F / Cmd-F', T('Start searching'))}}
{{=shortcut('Ctrl-G / Cmd-G', T('Find Next'))}}
{{=shortcut('Shift-Ctrl-G / Shift-Cmd-G', T('Find Previous'))}}
{{=shortcut('Shift-Ctrl-F / Cmd-Option-F', T('Replace'))}}
{{=shortcut('Shift-Ctrl-R / Shift-Cmd-Option-F', T('Replace All'))}}
{{=shortcut('Ctrl-/ ', T('Toggle comment'))}}
{{=shortcut('Tab', T('Expand Abbreviation (html files only)'))}}
{{=shortcut('Ctrl-Space', T('Autocomplete Python Code'))}}



Don't know if they work?  Off to try them now...  :o)

-- 
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: CMS WEB2PY

2015-10-10 Thread Anthony
If it has to be Python, there are several Django based CMSes -- Wagtail 
looks like a nice one (there's also Mezzanine and 
Django CMS).

Anthony

On Saturday, October 10, 2015 at 3:32:22 AM UTC-4, Paolo Amboni wrote:
>
> After some research i finally concluded that there is no stable and 
> structured CMS made for web2py (tell me if i'm wrong).
> Which is a python cms that better can be put beside a web2py site (already 
> made)?
> Thanks.
>

-- 
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: Don't laugh but I like the admin editor ;o)

2015-10-10 Thread Anthony
It's CodeMirror . You can see how it is configured 
here 
and
 
here 

.

Anthony

On Saturday, October 10, 2015 at 8:06:32 AM UTC-4, Edward Shave wrote:
>
> Only thing is I can't find much by way of instructions for it so if anyone 
> can point me in the right direction.
>
> I'm particularly interested in search and replace and any short-cut keys...
>
> Also any nifty undocumented features you may know about.
>
> best regards
> Ed
>

-- 
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: Don't laugh but I like the admin editor ;o)

2015-10-10 Thread Gary Cowell
I like it too. It makes it possible to work on sites with just a browser, 
like on a Chromebook. Which in fact, I do.

On Saturday, 10 October 2015 13:06:32 UTC+1, Edward Shave wrote:
>
> Only thing is I can't find much by way of instructions for it so if anyone 
> can point me in the right direction.
>
> I'm particularly interested in search and replace and any short-cut keys...
>
> Also any nifty undocumented features you may know about.
>
> best regards
> Ed
>

-- 
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] add extra fields in auth.user

2015-10-10 Thread A C REDDY SREEDHAR REDDY
*i have been trying to add extra field *
auth = Auth(db)
auth.settings.extra_fields['auth_user']= [
  Field('address'),
  Field('city'),
  Field('zip'),
  Field('phone')]

## create all tables needed by auth if not custom tables
auth.define_tables(username=True)
*it shows *

""table already defined: auth_user""
*can anyone explain me how to solve this*

-- 
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: auth.requires_login redirect and session expiration

2015-10-10 Thread 'DenesL' via web2py-users

Status 401 is more appropriate since session has expired and the user is 
not authenticated.
Ajax or no ajax.

But we should return 403 when the user is authenticated and the request 
authorization fails for a component.

Do you agree with the following table?.
USER = is authenticated
COMP = current.request.ajax and current.request.cid 
RCR = raise or call/redirect

USER  COMP  RCR
  F F   401/otherwise
  F T   401
  T F   403/otherwise
  T T   403 
 
Denes

On Friday, October 9, 2015 at 11:26:42 PM UTC-4, Massimo Di Pierro wrote:
>
> Shouldn't we always return 403 is ajax?
>
> On Friday, 9 October 2015 12:22:52 UTC-5, DenesL wrote:
>>
>> Changing
>> if current.request.ajax:
>> raise HTTP(401, self.messages.ajax_failed_authentication)
>>
>> to
>> if current.request.ajax and current.request.cid:
>> raise HTTP(401, self.messages.ajax_failed_authentication)
>>
>> in gluon/tools/Auth class/requires function (line 3749 in release 2.12.03)
>> seems to solve the problem since it verifies it is a component before 
>> raising a 401, else it follows the "otherwise" or 
>> auth.settings.on_failed_authorization redirect (which I am using).
>>
>> Denes.
>>
>>
>>
>>
>> On Tuesday, October 6, 2015 at 1:50:04 PM UTC-4, DenesL wrote:
>>>
>>> Hi
>>>
>>> an expired session becomes empty but this does not seem to always 
>>> trigger auth.requires_login redirection to the login URL neither when set 
>>> via auth.requires_login(loginURL), aka the otherwise parameter, nor by 
>>> auth.settings.on_failed_authorization = loginURL *when XMLHttpRequest 
>>> (XHR) is used.*
>>> Actually the otherwise parameter is superfluous in this case.
>>>
>>> Status 401 UNAUTHORIZED with response
>>> NOT 
>>> AUTHORIZEDPlease login to view this content.
>>> but that is never seen since I am using www.idangero.us/framework7 , 
>>> which loads all links with Ajax by default, does not refresh the page.
>>>
>>> So this probably happens because the call is being treated as a 
>>> component by web2py.
>>> I can get around this by defining the links as external in framework7 
>>> but I wonder if it would not be better to have a way to tell web2py to 
>>> redirect when the session has expired even when using Ajax calls.
>>>
>>> Thanks,
>>> Denes
>>>
>>>

-- 
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: How to disable the calendar widget?

2015-10-10 Thread Edward Shave
Wow! Spoilt for choice  ;o)

Thanks for that Anthony.

I continue to be impressed by the standard of replies here.

-- 
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] Don't laugh but I like the admin editor ;o)

2015-10-10 Thread Edward Shave
Only thing is I can't find much by way of instructions for it so if anyone 
can point me in the right direction.

I'm particularly interested in search and replace and any short-cut keys...

Also any nifty undocumented features you may know about.

best regards
Ed

-- 
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] Basic queries in Web2Py

2015-10-10 Thread Kiran Subbaraman
The images are not visible in your post. You probably want to add them 
again as attachments?
For point 4, you need to assign a javascript function ( which does a 
form submit), for the on-click event.



Kiran Subbaraman
http://subbaraman.wordpress.com/about/

On Sat, 10-10-2015 1:04 AM, asesh...@hawk.iit.edu wrote:
I have the following queries. Could any of you please help me resolve 
these.


1. I tried to include CSS code but when searched in response, I am 
unable to find that CSS file.


Inline image 6
Inline image 7
2. I am unable to add reference to the default id column as foreign 
key. When i use the 'Field' attribute method which is the one 
mentioned in web2py, a separate field gets created where some value 
needs to be entered.


Inline image 4
Inline image 5
Inline image 3
3. I am not able to figure out how to customize the web page in 
web2py. I created the tables using define_table and used them as seen 
in screenshots below. The form fields get created automatically.


Inline image 2
Inline image 1

4. Finally how do I make a page submit only if I a particular checkbox 
is checked.

--
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] Re: error

2015-10-10 Thread Leonel Câmara
The reason this happens is that you're trying to use None as if it was 
something else.

Probably because you're doing some operation on a DAL object that in your 
case doesn't really have a db set properly yet it needs one for what you're 
trying to do. If you show us the code where this happens we can give you 
more information.

-- 
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] error

2015-10-10 Thread sai edx
can anyone explain the reason for this error.

 'NoneType' object has no attribute 
'_adapter'


thanks in advance

-- 
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] Auth_user.table appears corrupted

2015-10-10 Thread AKASH DAS
I am getting an error as auth_user.table appears corrupted . I tried 
migrate = False but after doing this I can't add extra fields to auth_user 
table and it is showing an error no such column 'x' in auth_user .
And when I tried to drop the table it shows an error occurred and nothing 
happens So what to do.

-- 
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] Basic queries in Web2Py

2015-10-10 Thread aseshad1
I have the following queries. Could any of you please help me resolve these.

1. I tried to include CSS code but when searched in response, I am unable 
to find that CSS file.

[image: Inline image 6]
[image: Inline image 7]
2. I am unable to add reference to the default id column as foreign key. 
When i use the 'Field' attribute method which is the one mentioned in 
web2py, a separate field gets created where some value needs to be entered. 

[image: Inline image 4]
[image: Inline image 5]
 [image: Inline image 3]
3. I am not able to figure out how to customize the web page in web2py. I 
created the tables using define_table and used them as seen in screenshots 
below. The form fields get created automatically.

[image: Inline image 2]
[image: Inline image 1]

4. Finally how do I make a page submit only if I a particular checkbox is 
checked.

-- 
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: Sitemap Question

2015-10-10 Thread Leonel Câmara
I would use the MENU helper for this. A sitemap follows much the same logic 
as a menu.

-- 
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: Installing app on Pythonanywhere

2015-10-10 Thread Leonel Câmara
Did you reload your webapp after making the changes?

-- 
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] CMS WEB2PY

2015-10-10 Thread Paolo Amboni
After some research i finally concluded that there is no stable and 
structured CMS made for web2py (tell me if i'm wrong).
Which is a python cms that better can be put beside a web2py site (already 
made)?
Thanks.

-- 
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.