[web2py] Re: How do I configure my domain to hosting PythonAnywhere

2014-09-16 Thread Loïc
https://www.pythonanywhere.com/wiki/OwnDomains

Le dimanche 14 septembre 2014 17:20:54 UTC+2, Капылов Данил a écrit :
>
> How do I configure my domain to hosting PythonAnywhere 
>
> Give detailed step by step instructions in please
>

-- 
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 do I configure my domain to hosting PythonAnywhere

2014-09-16 Thread Rufus
PythonAnywhere is a friend of web2py and gives you all the information to 
host a web2py
server on the website. 
Or explain your question better.  You don't host PythonAnywhere - 
PythonAnywhere hosts you.

-- 
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: Web2Py Book inconsistency and Reference to auth_user table has no recursive attributes

2014-09-16 Thread Anthony
The easiest way to extract a column into a list is using a Python list 
comprehension:

rowstosend = db(db.auth_criteria.toSend == 1).select()
mylist = [row.user_id for row in rowstosend]

However, that is not a good option if using recursive selects, because each 
row will result in a separate database query. So, don't do:

mylist = [row.user_id.email for row in rowstosend]

Instead, do a join:

rowstosend = db((db.auth_criteria.toSend == 1) &
(db.auth_criteria.user_id == db.auth_user.id)).select()
mylist = [row.auth_user.email for row in rowstosend]

Also, if you know you only need a single column from the database, it will 
be more efficient to explicitly specify just that column:

rowstosend = db((db.auth_criteria.toSend == 1) &
(db.auth_criteria.user_id == db.auth_user.id)).select(db.
auth_user.email)

Finally, if you actually want a Pandas DataFrame, you can pass a custom 
processor function to .select() that will take the raw results set from the 
database driver and convert it directly to a DataFrame rather than creating 
a DAL Rows object:

import pandas as pd
def pandas_df(rows, fields, columns, cacheable):
return pd.DataFrame.from_records(rows, columns=columns)

df = db((db.auth_criteria.toSend == 1) &
(db.auth_criteria.user_id == db.auth_user.id)).select(processor=
pandas_df)

mylist = df['email'] # now you have a Pandas Series

Anthony

On Tuesday, September 16, 2014 7:51:11 PM UTC-4, Yi Liu wrote:
>
> New function suggestion:
>
> Is it possible to return a list of field (column-wise) values without 
> iterating through the rows? Currently, to get a column of selected rows, 
> you have to do a for loop to collect them.
>
> It is very convenient to select column in numpy arrays or pandas 
> dataframes. I guess not so easy for SQL (I am beginner)?
>

-- 
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: Web2Py Book inconsistency and Reference to auth_user table has no recursive attributes

2014-09-16 Thread Yi Liu
New function suggestion:

Is it possible to return a list of field (column-wise) values without 
iterating through the rows? Currently, to get a column of selected rows, 
you have to do a for loop to collect them.

It is very convenient to select column in numpy arrays or pandas 
dataframes. I guess not so easy for SQL (I am beginner)?

-- 
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: Web2Py Book inconsistency and Reference to auth_user table has no recursive attributes

2014-09-16 Thread Yi Liu
Following your suggestion, I looked up how to use ipython console shell 
mode. The key is to load models by -M. Ahah! I hope this -M option could be 
documented better in the book. Now I have my friend iPython with me.

Recursive indeed works:

In [5]: rowtosend = db(db.auth_criteria.toSend==1).select()

In [7]: rowtosend
Out[7]: 

In [8]: for row in rowtosend:
   ...: print row.user_id.email
   ...:
xxx...@gmail.com

Then I have found my stupid real problem:

myList = []
for row in rowsToSend:
email = row.user_id.email
myList = myList.append(email)

after the for loop, myList became a Nonetype.

I should simply use myList.append(email)

Well, thanks everyone. I learned how to use iPython with web2py today. It 
will help me a lot in future develpment. 

-- 
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: web2py meetup with Massimo in north Bay Area

2014-09-16 Thread Simon Ashley

Tempted. Feel like an adventure.

-- 
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: Comments/notes and api documentation

2014-09-16 Thread Anthony
Maybe submit a Github issue in the book repo requesting this feature.

Anthony

On Tuesday, September 16, 2014 6:12:06 PM UTC-4, Anthony wrote:
>
> Agreed, but for the most part, if something is truly lacking from the 
> documentation, it would be best if it could be included in the 
> documentation itself, rather than in a long list of unorganized comments at 
> the bottom of the page. You can always make a pull request on the book repo 
> (https://github.com/mdipierro/web2py-book) for direct changes to the 
> documentation.
>
> Allowing user comments/feedback isn't a bad idea, though, but we would 
> probably have to change the UI -- currently each chapter is a very long 
> HTML page, and putting comments at the bottom would in many cases place 
> them very far from the relevant context in the chapter.
>
> Note, the old version of the book did in fact allow comments at the bottom 
> of each page (though there was no upvote/downvote feature), but that 
> functionality was not migrated to the newer book app.
>
> Anthony
>
> On Tuesday, September 16, 2014 6:02:42 PM UTC-4, Robin Manoli wrote:
>>
>> It's not really what I'm looking for. There are many benefits to the php 
>> documentation way:
>> 1. the comments are where you are looking for help
>> 2. when you are looking for help, and find a solution of your own, you 
>> can post it where you were looking
>> 3. the current documentation is unclear in many places, and it's not very 
>> efficient to browse around the form/slices/stackoverflow/examples to get to 
>> the solution, when it could already be there where you look first
>> 4. the documentation could become verbose instead of lacking
>> 5. there are many little tricks that i have read about in the forum that 
>> i couldn't find in the documentation... if all these tricks would be more 
>> accessible, web2py's many hidden features could be used more
>>
>> Den torsdagen den 11:e september 2014 kl. 00:27:10 UTC+2 skrev Anthony:
>>>
>>> It's not embedded with the main documentation, but for user contributed 
>>> content, we do have http://www.web2pyslices.com/home.
>>>
>>> Anthony
>>>
>>> On Wednesday, September 10, 2014 5:55:36 PM UTC-4, Robin Manoli wrote:

 Hey,
 the php documentation has user comments with examples of how to use 
 different functions. This is a great complement to their documentation.

 With web2py I have stumbled upon many things in these forums that I 
 have not seen in the documentation. I'm not sure how often you update it, 
 since I keep finding new things there too.

 Still, don't you think it would be better if we all could contribute 
 with common and examples to an api-type of documentation for web2py? I 
 think the php documentation does this really well.

>>>

-- 
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: Comments/notes and api documentation

2014-09-16 Thread Anthony
Agreed, but for the most part, if something is truly lacking from the 
documentation, it would be best if it could be included in the 
documentation itself, rather than in a long list of unorganized comments at 
the bottom of the page. You can always make a pull request on the book repo 
(https://github.com/mdipierro/web2py-book) for direct changes to the 
documentation.

Allowing user comments/feedback isn't a bad idea, though, but we would 
probably have to change the UI -- currently each chapter is a very long 
HTML page, and putting comments at the bottom would in many cases place 
them very far from the relevant context in the chapter.

Note, the old version of the book did in fact allow comments at the bottom 
of each page (though there was no upvote/downvote feature), but that 
functionality was not migrated to the newer book app.

Anthony

On Tuesday, September 16, 2014 6:02:42 PM UTC-4, Robin Manoli wrote:
>
> It's not really what I'm looking for. There are many benefits to the php 
> documentation way:
> 1. the comments are where you are looking for help
> 2. when you are looking for help, and find a solution of your own, you can 
> post it where you were looking
> 3. the current documentation is unclear in many places, and it's not very 
> efficient to browse around the form/slices/stackoverflow/examples to get to 
> the solution, when it could already be there where you look first
> 4. the documentation could become verbose instead of lacking
> 5. there are many little tricks that i have read about in the forum that i 
> couldn't find in the documentation... if all these tricks would be more 
> accessible, web2py's many hidden features could be used more
>
> Den torsdagen den 11:e september 2014 kl. 00:27:10 UTC+2 skrev Anthony:
>>
>> It's not embedded with the main documentation, but for user contributed 
>> content, we do have http://www.web2pyslices.com/home.
>>
>> Anthony
>>
>> On Wednesday, September 10, 2014 5:55:36 PM UTC-4, Robin Manoli wrote:
>>>
>>> Hey,
>>> the php documentation has user comments with examples of how to use 
>>> different functions. This is a great complement to their documentation.
>>>
>>> With web2py I have stumbled upon many things in these forums that I have 
>>> not seen in the documentation. I'm not sure how often you update it, since 
>>> I keep finding new things there too.
>>>
>>> Still, don't you think it would be better if we all could contribute 
>>> with common and examples to an api-type of documentation for web2py? I 
>>> think the php documentation does this really well.
>>>
>>

-- 
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: Comments/notes and api documentation

2014-09-16 Thread Robin Manoli
It's not really what I'm looking for. There are many benefits to the php 
documentation way:
1. the comments are where you are looking for help
2. when you are looking for help, and find a solution of your own, you can 
post it where you were looking
3. the current documentation is unclear in many places, and it's not very 
efficient to browse around the form/slices/stackoverflow/examples to get to 
the solution, when it could already be there where you look first
4. the documentation could become verbose instead of lacking
5. there are many little tricks that i have read about in the forum that i 
couldn't find in the documentation... if all these tricks would be more 
accessible, web2py's many hidden features could be used more

Den torsdagen den 11:e september 2014 kl. 00:27:10 UTC+2 skrev Anthony:
>
> It's not embedded with the main documentation, but for user contributed 
> content, we do have http://www.web2pyslices.com/home.
>
> Anthony
>
> On Wednesday, September 10, 2014 5:55:36 PM UTC-4, Robin Manoli wrote:
>>
>> Hey,
>> the php documentation has user comments with examples of how to use 
>> different functions. This is a great complement to their documentation.
>>
>> With web2py I have stumbled upon many things in these forums that I have 
>> not seen in the documentation. I'm not sure how often you update it, since 
>> I keep finding new things there too.
>>
>> Still, don't you think it would be better if we all could contribute with 
>> common and examples to an api-type of documentation for web2py? I think the 
>> php documentation does this really well.
>>
>

-- 
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: Web2Py Book inconsistency and Reference to auth_user table has no recursive attributes

2014-09-16 Thread Anthony
On Tuesday, September 16, 2014 4:05:12 PM UTC-4, Yi Liu wrote:
>
> web2py Shell 2.9.5-stable+timestamp.2014.03.16.02.35.39
> In [1] : tos = db(db.auth_criteria.toSend ==1).select()
>
> In [2] : tos
> 
>
> In [3] : for row in tos:
> print row.user_id.email
>
> Traceback (most recent call last):
>   File "/Users/LaViez/Documents/Python/web2py/gluon/contrib/shell.py", 
> line 234, in run
> exec compiled in statement_module.__dict__
>   File "", line 2, in 
> AttributeError: 'long' object has no attribute 'email'
>
>
I think this is a quirk of the web-based shell. You should be able to do:

db(db.auth_criteria.toSend ==1).select().first().user_id.email
 
But if you first store the Rows object and then access attributes of a row, 
the dal.Reference objects will have been converted to simple Long objects, 
and the recursive select will not work. It should work fine in a console 
based shell as well as standard app code.

Btw, I find some inconsistency in the book 6th edition.
>
> In the Overview section:
>
> db.post.image_id.requires = IS_IN_DB(db, db.image.id, '%(title)s')
>
>
> But in DAL section:
>
> db.thing.owner_id.requires = IS_IN_DB(db,'person.uuid','%(name)s')
>
>
It's not an inconsistency -- just two different allowed argument types for 
the second argument (either a field object, or its string representation).

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.


[web2py] Re: Web2Py Book inconsistency and Reference to auth_user table has no recursive attributes

2014-09-16 Thread Yi Liu
Thanks a lot, ... Niphlod.

When I do a simpler version, the web shell will give me "an error occured, 
please reload." when I try: print row.user_id.email. Then I basically have 
to restart web2py.py again to get the shell back. Reload won't work.

I am wondering if auth tables has to be logged in to use? Since I was 
either querying the tables in scheduler (in actual deployment) or in web 
admin shell.

I can tell the reference is working, since this code work fine showing the 
user's first name and last name in the user_id section.

if request.args(0)=='profile':
db.auth_criteria.user_id.default = auth.user.id
record = db.auth_criteria(db.auth_criteria.user_id.default)
formFil=SQLFORM(db.auth_criteria, 
record=record,
labels = {'salePrice':XML('By Sale Price')},
buttons = [TAG.button('Set Mine', _class='btn-primary')])

But I cannot get recursive attributes in either web shell or scheduler 
tasks.



On Tuesday, September 16, 2014 1:27:58 PM UTC-7, Niphlod wrote:
>
> the requires attribute just sets a validator that is called upon form 
> validation, so it's correct that by itself doesn't produce a "link", as you 
> call it.
>
>
> Did you try with a simpler model to pinpoint the cause ?
>
> i.e.
>
> db.define_table('auth_criteria',
>Field('user_id', 'reference auth_user'),
> )
>
>
>

-- 
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: set onblur event in controller

2014-09-16 Thread Derek
Why do you need to do it in the controller? Can't you do it in a view?

On Monday, September 15, 2014 3:37:32 AM UTC-7, T.R.Rajkumar wrote:
>
> How to set the _onblur event of an INPUT in controller to a function in 
> static/js/x.js file? 
>

-- 
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: Web2Py Book inconsistency and Reference to auth_user table has no recursive attributes

2014-09-16 Thread Niphlod
the requires attribute just sets a validator that is called upon form 
validation, so it's correct that by itself doesn't produce a "link", as you 
call it.


Did you try with a simpler model to pinpoint the cause ?

i.e.

db.define_table('auth_criteria',
   Field('user_id', 'reference auth_user'),
)


-- 
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] Web2Py Book inconsistency and Reference to auth_user table has no recursive attributes

2014-09-16 Thread Yi Liu
web2py Shell 2.9.5-stable+timestamp.2014.03.16.02.35.39
In [1] : tos = db(db.auth_criteria.toSend ==1).select()

In [2] : tos


In [3] : for row in tos:
print row.user_id.email

Traceback (most recent call last):
  File "/Users/LaViez/Documents/Python/web2py/gluon/contrib/shell.py", line 
234, in run
exec compiled in statement_module.__dict__
  File "", line 2, in 
AttributeError: 'long' object has no attribute 'email'

Hi, the above is my error. Spent a few hours and couldn't figure out...

my db.py:

db.define_table('auth_criteria',
   Field('user_id', 'reference auth_user',requires = IS_IN_DB(db, 
'auth_user.id'), readable=False, writable=False),
   Field('salePrice', 'integer', widget=SQLFORM.widgets.radio.widget, 
requires = IS_IN_SET(salePrice)),
   Field('toSend','integer', readable=False, writable=False))
db.auth_criteria.id.readable=False 

In my appadmin interface, I can tell the "user_id" field IS indeed linked 
to auth_user, since I can click the auth_criteria "user_id" field, it will 
direct me to auth_user table.

But I cannot get any recursive attribute in the run as the error shows.

Btw, I find some inconsistency in the book 6th edition.

In the Overview section:

db.post.image_id.requires = IS_IN_DB(db, db.image.id, '%(title)s')


But in DAL section:

db.thing.owner_id.requires = IS_IN_DB(db,'person.uuid','%(name)s')


It seems both will link the tables. But none gave me the "email" or 
"first_name" attributes in recursive selection.

Thanks for any 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: Making a DevBar to develop faster in web2py.

2014-09-16 Thread JorgeH

Seems nice!
keep going

On Tuesday, September 16, 2014 2:28:16 PM UTC-5, Encompass solutions wrote:
>
>
> I am working on a feature for web2py and would like to gather the 
> following information:
>
>- How long did it take to render html for the page.
>- What database calls occured with this page render.
>- What were the calls that were made in SQL and DAL format.
>- What Global variables are set in the model.
>
> The idea I am working on is a bar that would render if locally run, or 
> requested, that would display information about content sent to the page. 
> Like the generic page but a little more informative and able to pulled up 
> without interfering with the page at all.
>
> How would I get what I have stated above?
>
> Is there other content you would want for this DevBar, as I call it?  I 
> don't want to try to make my own firebug or anything, just stuff 
> specifically about web2py's and the things that might be needed in making 
> sure the page loads properly and developed quickly.
>
> Attached are my beginnings of it.  It would pull out from the left with an 
> html widget in the top right.  Then selecting a tab on the right would load 
> content on the left with the original page in the background.
>

-- 
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: Web2py ajax call and Angularjs

2014-09-16 Thread Leonel Câmara
I don't know angular, but I don't think you're supposed to just call that 
stuff directly, you can use jquery ajax, but you need to put the call in a 
Factory or Service or another one of those bullshits angular loves and then 
you put it in the scope.

-- 
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] Web2py ajax call and Angularjs

2014-09-16 Thread piero crisci
I am testing angularjs with web2py.
In my web2py i have some ajax call that store the html code into a dialog 
box.
Now i would like to insert in html code from the callback some angularjs 
code.
But because ajax call is not into angular module , the code is not running.
The angular MVC work instead properly into main pages.
Anyone is trying the same thing  or got some hints for me?.
I cannot find any examples of how use web2py ajax (or jquer ajax) with 
angularjs

-- 
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: ssl certificate?

2014-09-16 Thread Derek
Free SSL Cert for Open Source projects...

https://www.globalsign.com/ssl/ssl-open-source/


On Sunday, September 14, 2014 6:30:45 PM UTC-7, Massimo Di Pierro wrote:
>
> Any recommendation about where to buy a cheat ssl certificate? I have used 
> RapidSSL before. 

-- 
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: Web2py web mapping capabilities

2014-09-16 Thread Andrew W
You could also use d3.js with web2py, using geojson and topojson for display.   
See d3js.org

-- 
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] Database design question regarding the usage of supertypes for a web2py project

2014-09-16 Thread Richard Vézina
You are welcome!

Richard

On Mon, Sep 15, 2014 at 3:45 PM, Jan Beilicke 
wrote:

> I chose approach B and it works fine. Thanks for mentioning drop downs.
>
> Kind regards,
>
> Jan
>
> Am Donnerstag, 11. September 2014 17:24:40 UTC+2 schrieb Richard:
>>
>> B will help you filter your drop down of component package if you can
>> only have in a package the same supertype component.
>>
>> Difficults to say without concrete example.
>>
>> Richard
>>
>> On Thu, Sep 11, 2014 at 9:58 AM, Jan Beilicke 
>> wrote:
>>
>>> These are just sample names. In reality they are separate business/use
>>> case entities sharing only the same supertype, they are not enumerated.
>>>
>>> Am Donnerstag, 11. September 2014 15:42:47 UTC+2 schrieb Richard:

 Why component_a, _b, _c... You will end up create new table all the
 time...

 Richard

 On Thu, Sep 11, 2014 at 7:04 AM, Jan Beilicke 
 wrote:

> Hi everyone,
>
> I'm working on a web2py project which requires a complex relationship
> model. I want to use a model that works well with web2py's DAL and I would
> be glad if somebody could point me into the right direction.
>
> I created a small sample ER diagram to illustrate my problem, only the
> important parts are displayed and the table names are generalized for
> easier understanding. The database has a couple of tables (or business
> objects), most of them are depending on some supertype, let's call it
> 'component_type', the subtypes 'component_[a-z]'.
>
> The business case requires to create a component_package which
> contains required components, but *all components in the package must
> be of the same component_type.*
>
> Two possible variants are shown in the illustration:
>
> Variant A: The component_package contains the foreign keys of the
> component tables.
> Variant B: The package additionally contains the foreign key of the
> component_type table.
>
> Which variant would you recommend and which one might work better with
> DAL? Unfortunately, all the resources and database design documents I 
> found
> in the web were only explaining the general supertype/subtype relation.
>
> Thank you in advance and
> kind regards,
>
> Jan
>
>
> 
>
>  --
> 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+un...@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+un...@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: ssl certificate?

2014-09-16 Thread Cliff Kachinske
+1 on Namecheap

On Monday, September 15, 2014 10:16:12 AM UTC-4, Anthony wrote:
>
> For non-free certificates, various Comodo, GeoTrust or Thawte resellers 
>> have certificates in the 5 to 30 USD per year range (email / domain 
>> verification). If you need business entity verification, prices are higher. 
>> In any case, prices have plummeted in the last few years
>
>
> The $59.90 cert from StartSSL is probably about the cheapest wildcard cert 
> you can get (allows unlimited subdomains). The lower cost ones mentioned 
> above are typically for single domains (no wildcard).
>
> Namecheap.com seems to be a good place for discounted certs (relative to 
> the price of buying direct from the CA).
>
> 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.


Re: [web2py] Re: web2py app as proxy... but how?

2014-09-16 Thread Manuele Pesenti
Il 11/09/14 23:02, Niphlod ha scritto:
> btw: a session.forget(response) on top of all, if you don't need the
> sessions to be persisted, may be a good idea to improve parallel calls.
How can I improve parallel calls to get better performances?

Thank you
Cheers

Manuele

-- 
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] Beginner issues

2014-09-16 Thread Manuele Pesenti
Il 11/09/14 14:22, Pedro Henrique Correa Ferreira ha scritto:
> How is the correct way to do that?
This is one possible way:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#Validators-with-dependencies

M.

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