[web2py] welcome app in 2.9.5 , 2.11.2 , 2.14.6

2017-01-17 Thread webpypy
Hi ,

I am trying to add sub sub menu items, as follows:

response.menu += [
(SPAN('web2py', _class='highlighted'), False, 'http://web2py.com', [
(T('My Sites'), False, URL('admin', 'default', 'site')),
(T('This App'), False, URL('admin', 'default', 'design/%s' % app), [

(T('This App'), False, URL('admin', 'default', 'design/%s' % app), [
(T('Controller'), False,
 URL(
 'admin', 'default', 'edit/%s/controllers/%s.py' % (app, ctr))),
(T('View'), False,
 URL(
 'admin', 'default', 'edit/%s/views/%s' % (app, response.view))),]),


(T('Controller'), False,
 URL(
 'admin', 'default', 'edit/%s/controllers/%s.py' % (app, ctr))),

It is working fine in 2.9.5 welcome app

not working in 2.11.2 and 2.14.6 welcome apps

your help is highly appreciated.

webpypy

-- 
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] invalid reset password

2015-07-02 Thread webpypy
Hi,

Four days ago, the reset password was working fine.

Now, it gives 'invalid reset password' after clicking the link of reset 
password mail.

I am on pythonanywhere, mysql , 2-11-2.

The only change ( I did during the last two days) related to auth was the 
setting on the language of the recaptch2.

the error is still there even after resetting the recaptch2 options.

Pls, help.

Ashraf

-- 
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: invalid reset password

2015-07-02 Thread webpypy

Hi Annet,

you are right.

what i did 4 days ago, was changing the password, not 'reset password'.

Regards,

Ashraf


On Thursday, July 2, 2015 at 7:31:37 PM UTC+3, Annet wrote:

 Hi Ashraf,

 This issue has also been reported on June 10th and on Mai 24th
 as well, as far as I know it has not yet been solved.

 Kind regards,

 Annet


-- 
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: invalid reset password

2015-07-02 Thread webpypy


As a temporary solution,

The admin (manager) sets the password to specific one,

then the user (who forgot the password) uses it to log in and change it.


-- 
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: Mail.send failure

2015-06-15 Thread webpypy
for the gmail account :

port 465 leads to the error (timeout)

port 25,587 lead to the error (10013 )


Any help is appreciated..



On Sunday, June 14, 2015 at 6:26:00 AM UTC+3, webpypy wrote:

 Hi :

 I got the error

 error 10013
 An attempt was made to access a socket in a way forbidden by its access 
 permissions.

 what is the cause?

 sender is in the format x...@gmail.com javascript: ( I mean there 
 are two dots). Is this a problem?

 Regards,

 Ashraf

  


-- 
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: Mail.send failure

2015-06-14 Thread webpypy
trying another email account (hotmail , with only one dot)
and switching between port numbers 25 , 465

will switch between two errors :

error 10013
An attempt was made to access a socket in a way forbidden by its access 
permissions.

and 

error 10060
A connection attempt failed because the connected party did not properly 
respond after a period of time, or established connection failed because 
connected host has failed to respond.

where is the problem?

On Sunday, June 14, 2015 at 6:26:00 AM UTC+3, webpypy wrote:

 Hi :

 I got the error

 error 10013
 An attempt was made to access a socket in a way forbidden by its access 
 permissions.

 what is the cause?

 sender is in the format x.y...@gmail.com ( I mean there are two 
 dots). Is this a problem?

 Regards,

 Ashraf

  


-- 
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] Mail.send failure

2015-06-13 Thread webpypy
Hi :

I got the error

error 10013
An attempt was made to access a socket in a way forbidden by its access 
permissions.

what is the cause?

sender is in the format x.y...@gmail.com ( I mean there are two dots). 
Is this a problem?

Regards,

Ashraf

 

-- 
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] recaptcha2 on pythonanywhere

2015-06-12 Thread webpypy
Hi,

I am trying recaptcha2 on pythonanywhere, it is working, but no image , 
only verify check.

using  options = dict(theme='dark'),   will switch to the dark 
theme.

using  options = dict(type='image'),   is not showing any 
images, only the verify check.

Can i know how to get an image displayed in the recaptcha2?

Ashraf

-- 
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: Recaptcha on pythonanywhere.com https error

2015-06-11 Thread webpypy
Hi,

I am trying recaptcha2 on pythonanywhere, it is working, but no image , 
only verify check.

using  options = dict(theme='dark'),   will switch to the dark 
theme.

using  options = dict(type='image'),   is not showing any 
images, only the verify check.

Can i know how to get an image displayed in the recaptcha2?

Ashraf


On Friday, June 5, 2015 at 11:19:00 PM UTC+3, Niphlod wrote:

 book is for near-stable things. new can be only find in docstring. 
 Fortunately we host API docs on readthedocs with full-text search

 go to http://web2py.rtfd.org/, insert recaptcha2 inside the box, see 
 the magic happening!

 (this 
 http://web2py.readthedocs.org/en/latest/tools.html?highlight=recaptcha2#gluon.tools.Recaptcha2is
  
 what it looks like)

 @mdipierro: maybe, but just maybe, we can make a better CHANGELOG for 
 web2py: it has been discussed before that it's getting rather unintuitive 
 in the quest of being newbies-like that almost every new thing gets cut out.


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

2014-02-26 Thread webpypy
Hi,

is there something like this

http://dev.splunk.com/view/web-framework/SP-CAAAER6

in the roadmap?

Regards,

Ashraf

-- 
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/groups/opt_out.


[web2py] Re: Roadmap

2014-02-26 Thread webpypy
I am saying that the feature of data analysis should be there.
The simplest form of existence is through a comprehensive example.
Later the decision will be made to go embedded or on the top.
...scheduled in the roadmap.

Ashraf

On Wednesday, February 26, 2014 3:08:55 PM UTC+3, Anthony wrote:

 Are you saying you want an enterprise level machine data analysis 
 framework built into web2py? Seems like a tall order, and more like 
 something you would build on top of web2py rather than into the core 
 framework.

 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/groups/opt_out.


[web2py] Graphs , using of Google charts in web2py app should be easy.

2014-01-15 Thread webpypy
Hi,

It is easy, no json, no plugin.

Pass the query results to the view
return dict(projects=projects)

Copy the snippet in the view.
https://google-developers.appspot.com/chart/interactive/docs/quick_start

replace this part

data.addRows([
  ['Mushrooms', 3],
  ['Onions', 1],
  ['Olives', 1],
  ['Zucchini', 1],
  ['Pepperoni', 2]
]);

with this part

  data.addRows(7);

  {{for k,project in enumerate(projects):}}
data.setCell({{=k}}, 0, '{{= project.name}}');
data.setCell({{=k}}, 1, {{=project.value}});
  {{pass}}

Enjoy ,

Ashraf

-- 
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/groups/opt_out.


[web2py] Re: web2py running en AppFog

2014-01-03 Thread webpypy

Hi,

Please, translate this

EXPLANATION: http://jallander.wordpress.com/2014/01/03/web2py-en-appfog/


to English.

Regards,

Ashraf 

-- 
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/groups/opt_out.


[web2py] Re: Wappalyzer

2013-12-16 Thread webpypy
Hi,

I wish I could help, but I don't know what is it about.

Good luck.

Ashraf

-- 
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/groups/opt_out.


[web2py] Re: web2py 2.8.1 is OUT

2013-11-27 Thread webpypy

Hi,

I got the error: 
 'dict' object has no attribute 'is_mobile'
it works fine in 2.7.4

-- 
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/groups/opt_out.


[web2py] Re: web2py 2.8.1 is OUT

2013-11-27 Thread webpypy

How can i remove existing sessions?

-- 
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/groups/opt_out.


[web2py] Re: Bootstrap modal window with date widget

2013-11-20 Thread webpypy
Hi,

in version 2.7.4, , the calendar popup pops up behind the modal window.

Ashraf

-- 
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/groups/opt_out.


Re: [web2py] Re: count of reference usage

2013-11-14 Thread webpypy

Thank you , Massimo  viniciusban ,

Would please write down the statement for calculating the count of Things 
for every person?

 instead of 

 for row in persons_and_things.select():
print row.person.name, row.thing.name
Alex Boat
Alex Chair
Bob Shoes
Curt Boat


I would like to get


Alex 2
Bob 1
Curt 1


Regards,

Ashraf

-- 
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/groups/opt_out.


[web2py] count of reference usage

2013-11-13 Thread webpypy
Hi,

I have three tables ( emp , dept ) and (many to many).

How to get (for each dept), how many times each dept is referenced?

deptnumber of occurrences
--
.
.
.

Regards,

Ashraf

-- 
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/groups/opt_out.


[web2py] Re: count of reference usage

2013-11-13 Thread webpypy

Thank you , Massimo.

Would please write down the statement for calculating the count of Things 
for every person?

 instead of 

 for row in persons_and_things.select():
print row.person.name, row.thing.name
Alex Boat
Alex Chair
Bob Shoes
Curt Boat


I would like to get


Alex 2
Bob 1
Curt 1


Regards,

Ashraf

-- 
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/groups/opt_out.


[web2py] Re: new feature in trunk

2013-10-21 Thread webpypy

very nice 

what about the display of the tree in the view ? maybe as a column in a 
table.

-- 
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/groups/opt_out.


[web2py] Re: How to leverage web2py popularity and usage?

2013-09-07 Thread webpypy

As Massimo said,  the main advantage/objective of web2py framework is to 
be the easiest and fastest to develop web applications.

I think the rate of growing popularity/interest was high for versions  2.0 
, compared with versions = 2.0 .
Maybe because of the big size of manual for versions 2.0 , The big manual 
means it is not expected to be the easiest and fastest anymore.

I suggest explaining the features through well documented 
examples/appliances, keeping the manual small... 

-- 

--- 
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/groups/opt_out.


[web2py] Re: Reddit development using web2py

2013-08-30 Thread webpypy
Try this 

https://groups.google.com/forum/#!searchin/web2py/reddit%7Csort:date/web2py/0YlcTFegHCU/6_4LjWt0jYAJ




On Thursday, August 29, 2013 6:18:30 PM UTC+3, nama...@gmail.com wrote:

 I want to develop replica of Reddit Website 
 http://www.reddit.com/
 using web2py framework.
 Can anyone please provide me with its source code so that i can study the 
 web2py code and understand, it will help me understand the concepts well
 Thanks in advance



-- 

--- 
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/groups/opt_out.


[web2py] Re: Reddit development using web2py

2013-08-30 Thread webpypy




 (web.py and web2py are often confused).

 Anthony



example of confusion:

clicking on web2py   in https://www.openshift.com/developers/python

will go to web.py

-- 

--- 
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/groups/opt_out.


[web2py] Re: github - please follow

2013-08-24 Thread webpypy
Done.

On Sunday, August 25, 2013 2:26:03 AM UTC+3, Massimo Di Pierro wrote:

 web2py has many users but few github followers. This is a problem because 
 the number of followers is a metric that can be used to guess popularity. 

 You can help.

 Get a github account and click on the star. 
 https://github.com/web2py/web2py

 It costs nothing and has benefits. For example you can receive 
 notificatios when we make improvements.

 Massimo 


-- 

--- 
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/groups/opt_out.


[web2py] Re: Do you use web2py professionally?

2013-08-15 Thread webpypy

Thank you, Arnon, for your cooperation.

Ashraf

-- 

--- 
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/groups/opt_out.


[web2py] Re: Do you use web2py professionally?

2013-08-14 Thread webpypy

Dear Arnon,

I appreciate your help. 
I am asking for small one-table example, if your company permits.

Regards,

Ashraf

-- 

--- 
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/groups/opt_out.


[web2py] Re: Do you use web2py professionally?

2013-08-13 Thread webpypy

Hi Arnon Marcus:

Is it possible to write a small web2py  example app using EJS TreeGrid?

Regards,

Ashraf Mansour

-- 

--- 
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/groups/opt_out.




[web2py] Re: for row in table (view), can i have a dropdown of list of links (update , delete) ?

2013-07-20 Thread webpypy
Yes, It is done in admin application.

On Friday, July 19, 2013 1:08:38 PM UTC+3, webpypy wrote:

 Hi,

 for row in table (view), can i have a dropdown of list of links (update , 
 delete) ?

 Regards,

 Ashraf


-- 

--- 
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/groups/opt_out.




[web2py] for row in table (view), can i have a dropdown of list of links (update , delete) ?

2013-07-19 Thread webpypy
Hi,

for row in table (view), can i have a dropdown of list of links (update , 
delete) ?

Regards,

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: upgrading eCardsOnMap to API V3

2013-06-28 Thread webpypy
As far as i remember, it worked fine.

That was one year ago.



 Ashraf



-- 

--- 
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/groups/opt_out.




[web2py] Re: example for validating input (using requires = IS_IN_DB) against form.vars before submit.

2013-06-17 Thread webpypy
Thank you, everybody.

let me describe what i am trying to do.

a table has field1 , field2

field1 is referenced in reftable1
field2 is referenced in reftable2

reftable2 has a field (reftable1_id) that is referenced in reftable1.

field1 is entered through dropdown list by
db.table.field1.requires = IS_IN_DB(db(db.reftable1.id0),'reftable1.id' , 
'%(name)s')
 

My question is about entering field2, the dropdown list needs to be 
according to the value entered in field1.
db.table.field2.requires = IS_IN_DB(db(db.reftable2.reftable1_id == 
request.vars.field1),'reftable2.id','%(name)s')

is not working.


why?
or how to debug?

Regards,

ashraf

-- 

--- 
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/groups/opt_out.




[web2py] example for validating input (using requires = IS_IN_DB) against form.vars before submit.

2013-06-15 Thread webpypy
Hi,

I am looking for an example for validating input (using requires = 
IS_IN_DB) against form.vars before submit.

Your help is appreciated.

Regards,

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: example for validating input (using requires = IS_IN_DB) against form.vars before submit.

2013-06-15 Thread webpypy



  I am looking for an example for validating input (using requires = 
 IS_IN_DB) against form.vars before submit.


  You mean you want to test an html form values to match a set of db 
values client-side?

I am trying to have a form with three fields,
the first one needs to to validated against data base (this can be done in 
the controller by field1.requires = IS_IN_DB(...)) , 
the second one needs to be validated against data base and the entered 
value of field1 ( field2.requires = IS_IN_DB(.form.vars.field1.))

I am generating the form using SQLFORM.






-- 

--- 
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/groups/opt_out.




[web2py] Re: Combining rows

2013-06-11 Thread webpypy

yes, I am sure it is working without as_dict().


Regards,

 Ashraf



-- 

--- 
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/groups/opt_out.




[web2py] Re: Combining rows

2013-06-10 Thread webpypy
Thank you, Massimo.

the following works fine.

locs=[row for row in dept_locs if row in todept_locs]

is  as_dict()  not mandatory all the time?

Please, explain.

Regards,

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Combining rows

2013-06-09 Thread webpypy
Hi,

How an I do intersection?

The manual says:


Row objects can be combined at the Python level. Here we assume:

 print rows1
person.name
Max
Tim
 print rows2
person.name
John
Tim

You can do a union of the records in two set of rows:

 rows3 = rows1  rows2
 print rows3
name
Max
Tim
John
Tim

You can do a union of the records removing duplicates:

 rows3 = rows1 | rows2
 print rows3
name
Max
Tim
John



Regards,

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: Combining rows

2013-06-09 Thread webpypy
Hi Massimo,

I think there is no 'not'.

am I right?

Regards,

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: Combining rows

2013-06-09 Thread webpypy

locs=[row for row in dept_locs if row.id in todept_locs as_dict()]

is invalid syntax.

what is the problem?

-- 

--- 
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/groups/opt_out.




[web2py] Re: is this a new feature?

2013-06-02 Thread webpypy
I am sorry. I am the problem.

I should use outer join.

I was confused , because not mentioning the reference table in the query 
and mentioning it in the select, will generate product of the tables.

Again, I am sorry.

Regards,

Ashraf

On Sunday, June 2, 2013 2:21:25 PM UTC+3, Alan Etkin wrote:

 As i remember, one year ago, I had to include the referenced table in the 
 query, so that it can be used in the select.


 Can you give us a source code example of the problem/question?


-- 

--- 
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/groups/opt_out.




[web2py] is this a new feature?

2013-06-01 Thread webpypy
Hi,

As i remember, one year ago, I had to include the referenced table in the 
query, so that it can be used in the select.

now, 2.4.7, there is no need to mention the referenced tables in the query.

Am i right or am i missing something?

Regards,

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
Hi,

I am having similar situation.

It seems that after submission, the menu is not refreshed.

My question is  what is the command for refreshing the menu? the same 
effect of F5

regards,

Ashraf


On Wednesday, March 20, 2013 11:49:26 AM UTC+3, Niphlod wrote:

 if you're not using load the page refreshes entirely after a submission. 
 the behaviour now is to redirect to #, so you see the switch from /foo/1 
 to /foo/1# .
 Inspect it with your preferred developers tools, you'll see a POST and a 
 redirect 

 On Wednesday, March 20, 2013 7:10:01 AM UTC+1, Alec Taylor wrote:

 (I'm using SQLFORM) 

 Currently all I get is my `response.flash` message and the URL changes 
 from: http://localhost/foo/1; to http://localhost/foo/1#;. 

 Instead I want the whole page to refresh so the changes the user made 
 propagates. 

 I do not want to use LOAD. 

 How do I refresh the page on successful form submission? 

 Thanks for all suggestions, 

 Alec Taylor 



-- 

--- 
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/groups/opt_out.




[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
Thank you Niphlod,

no ajax.

let me rephrase my question, I have a button, once clicked, I have to do 
things before defining the url of the controller.

Doing these things in the beginning of the controller means after the 
refreshing.

I hope my English is not very much confusing.

regards,

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
Thank you, Anthony.

my question is  where .

what is the location , in which the response.menu can be updated, after 
clicking the button and before defining the url (controller) of the button ?

in other words,where  can I write commands , that will be executed after 
the button is clicked and before executing the controller?

if i write these commands in the beginning of the controller, these 
commands will be executed after the refresh, but i need them executed 
before the refresh, and after the button is clicked.

I understand that button is defined in the view with the url of the 
controller,
is it possible to write something in between?


Regards,

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
ok, let me try again.

my description of a normal scenario:
i have a view displaying list of rows. there is a button (link) for each 
row. The link is pointing to a controller, which is related to a second 
view.
once the button(link) is clicked, the controller will start and show the 
second view. ( the menu is also refreshed).

what i am trying to do is:
change the menu, based on the selected row (clicked button).

Where do i write these changes?

when:
This needs to be done after the button clicking and before the start of the 
controller .

I did:
changing the menu in the beginning of the controller definition will not be 
reflected in the menu, because at that time, it has been refreshed already 
and to see the change, a manual f5 refresh is required.

I am trying to do the menu change before the refresh, so i will not need to 
refresh using f5.

Thank you for your patience.

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
To Anthony , Niphlod and Massimo :

I am asking for an answer to my question.

But, Now I have a different question.

Is my question valid? or am i making myself clear?

Regards,

Ashraf


-- 

--- 
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/groups/opt_out.




[web2py] Re: Refresh page on successful form submission; and response.flash?

2013-05-27 Thread webpypy
Thank you, Niphlod.

As you said,I created an extra controller, who solved my problem.

 

 Regards,

 Ashraf




-- 

--- 
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/groups/opt_out.




[web2py] TypeError

2013-05-26 Thread webpypy
Hi,

the statement

form = SQLFORM(db.table)

is giving the error

 unbound method formatter() must be called with IS_NOT_EMPTY instance as 
first argument (got str instance instead)

Please, explain.

regards,

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: TypeError

2013-05-26 Thread webpypy
Here it is

db.define_table(
'location',
Field('name' ,   requires = IS_NOT_EMPTY),
Field('category_id', 'reference category', requires = IS_NOT_EMPTY),
Field('company_id',  'reference company',  requires = 
IS_NOT_EMPTY,label = 'Owner id '),
Field('user_id', 'reference auth_user',requires = IS_NOT_EMPTY ,
   writable = False , readable = True),
Field('dept_id', 'reference dept',requires = IS_NOT_EMPTY ,
   writable = False , readable = True ))


-- 

--- 
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/groups/opt_out.




[web2py] Re: TypeError

2013-05-26 Thread webpypy
when I added the fields, as in

form = SQLFORM(db.location, fields=['name'])
if form.process().accepted:

it worked, but stopped at the next statement, giving the error

 'IS_NOT_EMPTY' object is not iterable

-- 

--- 
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/groups/opt_out.




[web2py] Re: TypeError

2013-05-26 Thread webpypy


On Sunday, May 26, 2013 5:14:18 PM UTC+3, webpypy wrote:

 Hi,

 the statement

 form = SQLFORM(db.table)

 is giving the error

  unbound method formatter() must be called with IS_NOT_EMPTY instance as 
 first argument (got str instance instead)

 Please, explain.

 regards,

 Ashraf


-- 

--- 
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/groups/opt_out.




[web2py] Re: TypeError

2013-05-26 Thread webpypy
when I changed the table definition to

db.define_table(
'location',
Field('name' ),
Field('category_id', 'reference category'),
Field('company_id',  'reference company'  ,label = 'Owner id '),
Field('user_id', 'reference auth_user',writable = False , 
readable = True),
Field('dept_id', 'reference dept', writable = False , 
readable = True ))
db.location.name.requires =IS_NOT_EMPTY()
db.location.category_id.requires =IS_NOT_EMPTY()
db.location.company_id.requires =IS_NOT_EMPTY()
db.location.user_id.requires =IS_NOT_EMPTY()
db.location.dept_id.requires =IS_NOT_EMPTY()

It works fine.

I think that it needs to explored...

Thanks 

-- 

--- 
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/groups/opt_out.




[web2py] Re: Datasift

2013-02-13 Thread webpypy

Maybe, it is not very nice...:)


On Tuesday, February 12, 2013 4:48:31 PM UTC+3, webpypy wrote:

 Hi,

 http://datasift.com/  is nice.

 it will be great, if it is integrated with web2py.

 You have a good one.

 Ashraf


-- 

--- 
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/groups/opt_out.




[web2py] Datasift

2013-02-12 Thread webpypy
Hi,

http://datasift.com/  is nice.

it will be great, if it is integrated with web2py.

You have a good one.

Ashraf

-- 

--- 
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/groups/opt_out.




[web2py] Re: Web2Py on OpenShift

2013-02-05 Thread webpypy

Hi Andrew,

Now, I have an application hosted on openshift web2py 2.0.9.
and it is working fine.

If I upgrade to 2.3.2 (by clicking on upgrade now) and then some problems 
happened, 
How do i return back to 2.0.9 ?

Regards,

Ashraf

-- 

--- 
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/groups/opt_out.




Re: [web2py] Chicago Job

2013-01-11 Thread webpypy
I am already under the impression that the new edition of the book is twice 
the size of the old edition.

On Saturday, January 12, 2013 1:31:49 AM UTC+3, rochacbruno wrote:

 Maybe a developer who read 1/2 of the web2py book :) LOL


-- 





[web2py] How to make a call?

2013-01-11 Thread webpypy
Hi ,

Using web2py app in mobile, How to make a call?

Regards,

Ashraf

-- 





[web2py] Re: web2py and crawlers

2013-01-07 Thread webpypy
is it possible to use scrapy http://scrapy.org/?

On Monday, January 7, 2013 2:20:16 PM UTC+3, sasogeek wrote:

 the app is on an online server...
 http://sasogeek.pythonanywhere.com/newup/

 will that still work?

 On Monday, 7 January 2013 11:15:51 UTC, Massimo Di Pierro wrote:

 You can try:
 python web2py.py -S yourapp -M -R yourscript.py

 use -h for command line options

 On Monday, 7 January 2013 04:25:13 UTC-6, sasogeek wrote:

 i was wondering, if i wrote a crawler in models to populate a database 
 table, how would the crawler run? as in how to run that script?



-- 





[web2py] Re: preferred solution for parsing {xht,ht,x}ml

2013-01-06 Thread webpypy


What about scrapy http://scrapy.org/?

-- 





[web2py] Re: preferred solution for parsing {xht,ht,x}ml

2013-01-06 Thread webpypy
Here is a scrapy tutorialhttp://doc.scrapy.org/en/latest/intro/tutorial.html
.

On Sunday, January 6, 2013 4:24:54 PM UTC+3, webpypy wrote:



 What about scrapy http://scrapy.org/?



-- 





[web2py] for code snippets

2013-01-04 Thread webpypy
Hae a look at :

http://codestagram.com/

-- 





[web2py] Re: Intro and my Web2py app

2012-12-28 Thread webpypy
Welcome ..:)

On Friday, December 28, 2012 11:11:46 PM UTC+3, Ilya wrote:

 Hello,

 I'm new to Web2py having used it for a few assignments and final project 
 in our web frameworks class. Here's my app that I'm hoping to take a little 
 further as I get a better handle on Web2py and Python. It's not deployed on 
 any domain, so just posting the source:

 https://github.com/ilyabe/BillSplitter

 The basic idea is to give roommates an easy option to split bills, i.e. 
 the main/responsible (admin) roommate pays, uploads the bills to the app, 
 and roommates sign up to auto-pay their portions.

 Just wanted to introduce myself and say hello!

 Thanks,

 Ilya


-- 





[web2py] Re: web3py?

2012-12-22 Thread webpypy
Do you prefer it as feature or example?

On Saturday, December 22, 2012 8:39:18 PM UTC+3, Massimo Di Pierro wrote:

 Very interesting. Looks like it completely client-side so it should work 
 without problems with web2py.

 Massimo

 On Saturday, 22 December 2012 11:35:33 UTC-6, webpypy wrote:

 Hi Massimo,

 Can webRTC be touched by web2py, (as a feature or as an example) , or by 
 web3py ?

 here is an example,
 http://www.youtube.com/watch?v=ZIIcEac24RU

 and its documentation,

 https://github.com/priologic/easyrtc/blob/master/docs/easyrtc_client_tutorial.md

 Regards,

 Ashraf




-- 





[web2py] Re: web3py?

2012-12-22 Thread webpypy
I mean, do we expect a web2py example that use webRTC or do we expect a 
core feature in web2py(or web3py) that interface with the cam and mic?



-- 





[web2py] Re: web3py?

2012-12-22 Thread webpypy
Thank you, Massimo.



--