Re: [web2py] Re: Sublime Text web2py plugin

2015-06-11 Thread António Ramos
In my opinion we should leave the IDE to an external tool like Sublime that
has a lot more power over the web2py web IDE and get the people behind the
web IDE to concentrate just on web2py that need a litle REVAMPING.

For me the webIDE its very usefull but not compared to sublime or other
like it

2015-06-11 19:29 GMT+01:00 Ron Chatterjee achatterjee...@gmail.com:

 Don't want to go Off Topic, but if we can just have auto complete in the
 web2py web based IDE, then what does the sublime provides extra over what
 we already have? I like sublime. That's not the point. I believe the
 current IDE is good for what it does just need the auto complete and few
 minor add ons.


 On Thursday, June 11, 2015 at 9:21:41 AM UTC-4, Ramos wrote:

 I got a database locked error opening web2py shell in sublime
 I think this is a sqlite problem right ?

 2015-06-11 14:15 GMT+01:00 António Ramos ramst...@gmail.com:

 just saw it in sublime-settings

 2015-06-11 14:07 GMT+01:00 António Ramos ramst...@gmail.com:

 SO COOL!! the w2py shell

 what is the admin password that it sets when starts the server ?


 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Everyone,

 I just tweaked the plug-in a little bit.
 Please uninstall the plug-in completely and install it again to get it
 work
 Steps are the following:

1. Package Control - Remove Package - W2P
2. Restart Sublime
3. Package Control - Install Package - W2P
4. Restart Sublime

 Sorry for the inconvenience

 Regards
 Greg

 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt
 írta:

 thank u

 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 It should create a new entry in Tools - SublimeREPL - Web2py
 {app_name}
 I will check it again in the source code

 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a
 következőt írta:

 I still have the same problem.
 Should i see something like web2py in Tools - Python -?

 thank u

 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Ramos,

 I fixed an issue in the Add REPL support command
 I pushed the changes so w2p plugin should be updated automagicly
 via PackageControl.
 If you still have issues please let me know

 Regards
 Greg

 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt
 írta:

 I cant install web2py sublimeRepl via

 W2p:Add sublimeREPL support

 Just see on status bar Loading Repositories  and nothing more
 then i search for it and i get this only

 [image: Imagem inline 1]

 Any help ?
 i´m on windows 7

 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com:

 XDebug looks nice but is for php only ?


 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com
 :

 Few good links for sublime I thought I can share within the
 community if anyone is interested. The django sublime interface 
 walks you
 through the entire sublime setup. I am sure, web2py will be same. 
 That
 said, I couldn't have the ipython and terminal working  like 
 anaconda. Or
 may be this is the best sublime can do.


 plugins available for debugging; for example:
 http://www.sitepoint.com/debugging-xdebug-sublime-text-3/

 Plugins for Python development:
 https://packagecontrol.io/packages/IPython%20Notebook

 https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/

 Navigating projects:

 http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/

 Package management:
 https://packagecontrol.io/installation

 Django interface:

 http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html








 On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz
 wrote:

 Hi Ron,

 To be honest I am still learning the advanced features of
 Sublime, Python and Web2py :)
 I am not familiar with ipython package unfortunately.
 I am using SublimeREPL package to open interactive shell in
 Sublime. You can open as many interactive  shell as many you 
 want. Sublime
 open a new tab for the shell and you can evaluate commands there.
 What do you mean by integrating project with ipython. Web2py
 has an option to start ipython shell I think if installed that is 
 the
 default shell.

 Hope I could help.

 If you have any question drop me a mail

 Regards
 Greg

 Ron Chatterjee achatte...@gmail.com ezt írta (időpont:
 2015. máj. 20., Sze, 1:43):

 This is great. I just started looking at sublime text. This
 is not a web2py question but since you are so familiar with 
 sublime
 Gergely, let me ask the question anyway...in sublime, all I see 
 a python
 terminal. I don't see a command prompt or ipython terminal. I 
 have
 installed the ipython from install packages.  How do I add more 
 terminal
 into sublime? Also, integrating Ipython with the project so all 
 the
 variable shows up in the workspace. Any thoughts?


 On Tuesday, May 19, 2015 at 5:00:58 AM UTC-4, Gergely Orosz
 wrote:

 Hi Ramos,

 It some bug in SublimeREPL it is not related

Re: [web2py] Re: OFF Topic -RiotJS

2015-06-12 Thread António Ramos
And Components..

2015-06-12 10:03 GMT+01:00 António Ramos ramstei...@gmail.com:

 Also you can add

 https://github.com/vuejs/vue-resource

 https://github.com/ayamflow/vue-route

 Also vuejs has Directives, filters, transitions ..

 2015-06-12 10:00 GMT+01:00 António Ramos ramstei...@gmail.com:

 In VueJS!!wait-for

 An event name to wait for on the incoming child component before
 switching it with the current component. This allows you to wait for
 asynchronous data to be loaded before triggering the transition to avoid
 unwanted flash of emptiness in between.

 Example:

 1

 div v-component={{view}} wait-for=data-loaded/div

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

 // component definition
 {
   // fetch data and fire the event asynchronously in the
   // compiled hook. Using jQuery just for example.
   compiled: function () {
 var self = this
 $.ajax({
   // ...
   success: function (data) {
 self.$data = data
 self.$emit('data-loaded')
   }
 })
   }
 }


 2015-06-12 5:30 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 Not sure. It was just an impression. I noticed ractive.js depends on
 jQuery. vue.js does not. the template language is the same in both
 (mustache). ractive.js requires a script type=ractive/ while vue.js
 acts in place (which is clever). Ractive has more example which makes me
 think it may have more functionality but I may be mistaken. One thing I do
 not see in vue.js are promises.


 On Thursday, 11 June 2015 03:31:25 UTC-5, Ramos wrote:

 Massimo
 why do you call Vuejs a stripped  version? what does it lack compared
 to Ractive?

 Thank you
 António

 2015-06-10 4:05 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com
 :

 vue.js look like a stripped version of ractive.js. The syntax is
 identical for what it provides.


 On Tuesday, 9 June 2015 16:36:49 UTC-5, Ramos wrote:

 No, of course not.

 On the contrary, i know hate angularjs after reading about vuejs.

 I wish i knew it before

 2015-06-09 19:58 GMT+01:00 Dave S snidely@gmail.com:



 On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote:

 another one bites the dust.


 bites the dust is used for something that (or someone who) has
 been shot down; a final face-plant.

 Are you saying the link below is a dead tool?




 http://vuejs.org/guide/index.html

 the docs are very extensive


 /dps



 2015-06-08 17:38 GMT+01:00 Derek sp1...@gmail.com:

 I just hate non-compliant html. I've always been drawn to html
 compliant templates, like TAL (Template Attribute Language).

 In any case, I see that it generates html, and it is a lot smaller
 than the alternatives. I'd be willing to give this a shot.


 On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote:

 just to share some noise on the UI for those looking at angular
 reactjs polymer ractive and so on

 https://muut.com/riotjs/

 any experience or comments ?

 Regards

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


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

Re: [web2py] Re: Sublime Text web2py plugin

2015-06-12 Thread António Ramos
+1

2015-06-12 9:41 GMT+01:00 Gergely Orosz oroszgergely840...@gmail.com:

 When I started to use web2py I loved the idea of the web IDE.
 As time passed by and I learned ins and outs of the framework and sublime
 text I started to use only Sublime.
 I searched the plugins I need to do everything from sublime while do my
 daily tasks (commit to git repository, resolve merge conflicts, query
 database, deploy over SSH)
 The one thing was missing is web2py 'integration' I call it integration
 but it a bunch of helpful stuff I use day after day while I work with web2py
 I don't want to compete with the web IDE, I don't want to convert anybody
 to Sublime.
 I'd like to make my life easier and help others

 That is the story behind the W2P plugin.

 2015. június 11., csütörtök 22:44:38 UTC+2 időpontban Ramos a következőt
 írta:

 In my opinion we should leave the IDE to an external tool like Sublime
 that has a lot more power over the web2py web IDE and get the people behind
 the web IDE to concentrate just on web2py that need a litle REVAMPING.

 For me the webIDE its very usefull but not compared to sublime or other
 like it

 2015-06-11 19:29 GMT+01:00 Ron Chatterjee achatte...@gmail.com:

 Don't want to go Off Topic, but if we can just have auto complete in the
 web2py web based IDE, then what does the sublime provides extra over what
 we already have? I like sublime. That's not the point. I believe the
 current IDE is good for what it does just need the auto complete and few
 minor add ons.


 On Thursday, June 11, 2015 at 9:21:41 AM UTC-4, Ramos wrote:

 I got a database locked error opening web2py shell in sublime
 I think this is a sqlite problem right ?

 2015-06-11 14:15 GMT+01:00 António Ramos ramst...@gmail.com:

 just saw it in sublime-settings

 2015-06-11 14:07 GMT+01:00 António Ramos ramst...@gmail.com:

 SO COOL!! the w2py shell

 what is the admin password that it sets when starts the server ?


 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Everyone,

 I just tweaked the plug-in a little bit.
 Please uninstall the plug-in completely and install it again to get
 it work
 Steps are the following:

1. Package Control - Remove Package - W2P
2. Restart Sublime
3. Package Control - Install Package - W2P
4. Restart Sublime

 Sorry for the inconvenience

 Regards
 Greg

 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a
 következőt írta:

 thank u

 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 It should create a new entry in Tools - SublimeREPL - Web2py
 {app_name}
 I will check it again in the source code

 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a
 következőt írta:

 I still have the same problem.
 Should i see something like web2py in Tools - Python -?

 thank u

 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Ramos,

 I fixed an issue in the Add REPL support command
 I pushed the changes so w2p plugin should be updated automagicly
 via PackageControl.
 If you still have issues please let me know

 Regards
 Greg

 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a
 következőt írta:

 I cant install web2py sublimeRepl via

 W2p:Add sublimeREPL support

 Just see on status bar Loading Repositories  and nothing more
 then i search for it and i get this only

 [image: Imagem inline 1]

 Any help ?
 i´m on windows 7

 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com:

 XDebug looks nice but is for php only ?


 2015-05-20 20:05 GMT+01:00 Ron Chatterjee 
 achatte...@gmail.com:

 Few good links for sublime I thought I can share within the
 community if anyone is interested. The django sublime interface 
 walks you
 through the entire sublime setup. I am sure, web2py will be 
 same. That
 said, I couldn't have the ipython and terminal working  like 
 anaconda. Or
 may be this is the best sublime can do.


 plugins available for debugging; for example:
 http://www.sitepoint.com/debugging-xdebug-sublime-text-3/

 Plugins for Python development:
 https://packagecontrol.io/packages/IPython%20Notebook

 https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/

 Navigating projects:

 http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/

 Package management:
 https://packagecontrol.io/installation

 Django interface:

 http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html








 On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz
 wrote:

 Hi Ron,

 To be honest I am still learning the advanced features of
 Sublime, Python and Web2py :)
 I am not familiar with ipython package unfortunately.
 I am using SublimeREPL package to open interactive shell in
 Sublime. You can open as many interactive  shell as many you 
 want. Sublime
 open a new tab for the shell and you can evaluate commands 
 there.
 What do you mean by integrating project with ipython.
 Web2py has an option to start

Re: [web2py] Re: OFF Topic -RiotJS

2015-06-12 Thread António Ramos
Also you can add

https://github.com/vuejs/vue-resource

https://github.com/ayamflow/vue-route

Also vuejs has Directives, filters, transitions ..

2015-06-12 10:00 GMT+01:00 António Ramos ramstei...@gmail.com:

 In VueJS!!wait-for

 An event name to wait for on the incoming child component before switching
 it with the current component. This allows you to wait for asynchronous
 data to be loaded before triggering the transition to avoid unwanted flash
 of emptiness in between.

 Example:

 1

 div v-component={{view}} wait-for=data-loaded/div

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

 // component definition
 {
   // fetch data and fire the event asynchronously in the
   // compiled hook. Using jQuery just for example.
   compiled: function () {
 var self = this
 $.ajax({
   // ...
   success: function (data) {
 self.$data = data
 self.$emit('data-loaded')
   }
 })
   }
 }


 2015-06-12 5:30 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 Not sure. It was just an impression. I noticed ractive.js depends on
 jQuery. vue.js does not. the template language is the same in both
 (mustache). ractive.js requires a script type=ractive/ while vue.js
 acts in place (which is clever). Ractive has more example which makes me
 think it may have more functionality but I may be mistaken. One thing I do
 not see in vue.js are promises.


 On Thursday, 11 June 2015 03:31:25 UTC-5, Ramos wrote:

 Massimo
 why do you call Vuejs a stripped  version? what does it lack compared to
 Ractive?

 Thank you
 António

 2015-06-10 4:05 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com
 :

 vue.js look like a stripped version of ractive.js. The syntax is
 identical for what it provides.


 On Tuesday, 9 June 2015 16:36:49 UTC-5, Ramos wrote:

 No, of course not.

 On the contrary, i know hate angularjs after reading about vuejs.

 I wish i knew it before

 2015-06-09 19:58 GMT+01:00 Dave S snidely@gmail.com:



 On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote:

 another one bites the dust.


 bites the dust is used for something that (or someone who) has been
 shot down; a final face-plant.

 Are you saying the link below is a dead tool?




 http://vuejs.org/guide/index.html

 the docs are very extensive


 /dps



 2015-06-08 17:38 GMT+01:00 Derek sp1...@gmail.com:

 I just hate non-compliant html. I've always been drawn to html
 compliant templates, like TAL (Template Attribute Language).

 In any case, I see that it generates html, and it is a lot smaller
 than the alternatives. I'd be willing to give this a shot.


 On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote:

 just to share some noise on the UI for those looking at angular
 reactjs polymer ractive and so on

 https://muut.com/riotjs/

 any experience or comments ?

 Regards

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


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

Re: [web2py] Re: OFF Topic -RiotJS

2015-06-12 Thread António Ramos
In VueJS!!wait-for

An event name to wait for on the incoming child component before switching
it with the current component. This allows you to wait for asynchronous
data to be loaded before triggering the transition to avoid unwanted flash
of emptiness in between.

Example:

1

div v-component={{view}} wait-for=data-loaded/div

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

// component definition
{
  // fetch data and fire the event asynchronously in the
  // compiled hook. Using jQuery just for example.
  compiled: function () {
var self = this
$.ajax({
  // ...
  success: function (data) {
self.$data = data
self.$emit('data-loaded')
  }
})
  }
}


2015-06-12 5:30 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 Not sure. It was just an impression. I noticed ractive.js depends on
 jQuery. vue.js does not. the template language is the same in both
 (mustache). ractive.js requires a script type=ractive/ while vue.js
 acts in place (which is clever). Ractive has more example which makes me
 think it may have more functionality but I may be mistaken. One thing I do
 not see in vue.js are promises.


 On Thursday, 11 June 2015 03:31:25 UTC-5, Ramos wrote:

 Massimo
 why do you call Vuejs a stripped  version? what does it lack compared to
 Ractive?

 Thank you
 António

 2015-06-10 4:05 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 vue.js look like a stripped version of ractive.js. The syntax is
 identical for what it provides.


 On Tuesday, 9 June 2015 16:36:49 UTC-5, Ramos wrote:

 No, of course not.

 On the contrary, i know hate angularjs after reading about vuejs.

 I wish i knew it before

 2015-06-09 19:58 GMT+01:00 Dave S snidely@gmail.com:



 On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote:

 another one bites the dust.


 bites the dust is used for something that (or someone who) has been
 shot down; a final face-plant.

 Are you saying the link below is a dead tool?




 http://vuejs.org/guide/index.html

 the docs are very extensive


 /dps



 2015-06-08 17:38 GMT+01:00 Derek sp1...@gmail.com:

 I just hate non-compliant html. I've always been drawn to html
 compliant templates, like TAL (Template Attribute Language).

 In any case, I see that it generates html, and it is a lot smaller
 than the alternatives. I'd be willing to give this a shot.


 On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote:

 just to share some noise on the UI for those looking at angular
 reactjs polymer ractive and so on

 https://muut.com/riotjs/

 any experience or comments ?

 Regards

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


  --
 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: Sublime Text web2py plugin

2015-06-17 Thread António Ramos
Thank you Gergely Orosz for your work.

Having the wep2y console and server console inside Sublime makes me a lot
more productive.

Just what i was looking for.

Regards
António


2015-06-12 17:37 GMT+01:00 António Ramos ramstei...@gmail.com:

 Ok.just some some...
 Em 12/06/2015 17:27, António Ramos ramstei...@gmail.com escreveu:

 My list of missing Web2py IDE features


 http://code.tutsplus.com/articles/perfect-workflow-in-sublime-text-free-course--net-27293

 2015-06-12 16:50 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com
 :

 I do not use sublime but could you list a list of features
 missing/problems with:
 https://bitbucket.org/kfog/w2p

 that would help us improve it.

 On Friday, 12 June 2015 03:41:49 UTC-5, Gergely Orosz wrote:

 When I started to use web2py I loved the idea of the web IDE.
 As time passed by and I learned ins and outs of the framework and
 sublime text I started to use only Sublime.
 I searched the plugins I need to do everything from sublime while do my
 daily tasks (commit to git repository, resolve merge conflicts, query
 database, deploy over SSH)
 The one thing was missing is web2py 'integration' I call it integration
 but it a bunch of helpful stuff I use day after day while I work with 
 web2py
 I don't want to compete with the web IDE, I don't want to convert
 anybody to Sublime.
 I'd like to make my life easier and help others

 That is the story behind the W2P plugin.

 2015. június 11., csütörtök 22:44:38 UTC+2 időpontban Ramos a
 következőt írta:

 In my opinion we should leave the IDE to an external tool like Sublime
 that has a lot more power over the web2py web IDE and get the people behind
 the web IDE to concentrate just on web2py that need a litle REVAMPING.

 For me the webIDE its very usefull but not compared to sublime or other
 like it

 2015-06-11 19:29 GMT+01:00 Ron Chatterjee achatte...@gmail.com:

 Don't want to go Off Topic, but if we can just have auto complete in
 the web2py web based IDE, then what does the sublime provides extra over
 what we already have? I like sublime. That's not the point. I believe the
 current IDE is good for what it does just need the auto complete and few
 minor add ons.


 On Thursday, June 11, 2015 at 9:21:41 AM UTC-4, Ramos wrote:

 I got a database locked error opening web2py shell in sublime
 I think this is a sqlite problem right ?

 2015-06-11 14:15 GMT+01:00 António Ramos ramst...@gmail.com:

 just saw it in sublime-settings

 2015-06-11 14:07 GMT+01:00 António Ramos ramst...@gmail.com:

 SO COOL!! the w2py shell

 what is the admin password that it sets when starts the server ?


 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Everyone,

 I just tweaked the plug-in a little bit.
 Please uninstall the plug-in completely and install it again to get it
 work
 Steps are the following:

1. Package Control - Remove Package - W2P
2. Restart Sublime
3. Package Control - Install Package - W2P
4. Restart Sublime

 Sorry for the inconvenience

 Regards
 Greg

 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt
 írta:

 thank u

 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 It should create a new entry in Tools - SublimeREPL - Web2py
 {app_name}
 I will check it again in the source code

 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a következőt
 írta:

 I still have the same problem.
 Should i see something like web2py in Tools - Python -?

 thank u

 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Ramos,

 I fixed an issue in the Add REPL support command
 I pushed the changes so w2p plugin should be updated automagicly via
 PackageControl.
 If you still have issues please let me know

 Regards
 Greg

 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta:

 I cant install web2py sublimeRepl via

 W2p:Add sublimeREPL support

 Just see on status bar Loading Repositories  and nothing more
 then i search for it and i get this only

 [image: Imagem inline 1]

 Any help ?
 i´m on windows 7

 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com:

 XDebug looks nice but is for php only ?


 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com:

 Few good links for sublime I thought I can share within the community
 if anyone is interested. The django sublime interface walks you through the
 entire sublime setup. I am sure, web2py will be same. That said, I couldn't
 have the ipython and terminal working  like anaconda. Or may be this is the
 best sublime can do.


 plugins available for debugging; for example:
 http://www.sitepoint.com/debugging-xdebug-sublime-text-3/

 Plugins for Python development:
 https://packagecontrol.io/packages/IPython%20Notebook

 https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/

 Navigating projects:

 http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/

 Package

Re: [web2py] Re: Sublime Text web2py plugin

2015-06-12 Thread António Ramos
My list of missing Web2py IDE features

http://code.tutsplus.com/articles/perfect-workflow-in-sublime-text-free-course--net-27293

2015-06-12 16:50 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 I do not use sublime but could you list a list of features
 missing/problems with:
 https://bitbucket.org/kfog/w2p

 that would help us improve it.

 On Friday, 12 June 2015 03:41:49 UTC-5, Gergely Orosz wrote:

 When I started to use web2py I loved the idea of the web IDE.
 As time passed by and I learned ins and outs of the framework and sublime
 text I started to use only Sublime.
 I searched the plugins I need to do everything from sublime while do my
 daily tasks (commit to git repository, resolve merge conflicts, query
 database, deploy over SSH)
 The one thing was missing is web2py 'integration' I call it integration
 but it a bunch of helpful stuff I use day after day while I work with web2py
 I don't want to compete with the web IDE, I don't want to convert anybody
 to Sublime.
 I'd like to make my life easier and help others

 That is the story behind the W2P plugin.

 2015. június 11., csütörtök 22:44:38 UTC+2 időpontban Ramos a következőt
 írta:

 In my opinion we should leave the IDE to an external tool like Sublime
 that has a lot more power over the web2py web IDE and get the people behind
 the web IDE to concentrate just on web2py that need a litle REVAMPING.

 For me the webIDE its very usefull but not compared to sublime or other
 like it

 2015-06-11 19:29 GMT+01:00 Ron Chatterjee achatte...@gmail.com:

 Don't want to go Off Topic, but if we can just have auto complete in the
 web2py web based IDE, then what does the sublime provides extra over what
 we already have? I like sublime. That's not the point. I believe the
 current IDE is good for what it does just need the auto complete and few
 minor add ons.


 On Thursday, June 11, 2015 at 9:21:41 AM UTC-4, Ramos wrote:

 I got a database locked error opening web2py shell in sublime
 I think this is a sqlite problem right ?

 2015-06-11 14:15 GMT+01:00 António Ramos ramst...@gmail.com:

 just saw it in sublime-settings

 2015-06-11 14:07 GMT+01:00 António Ramos ramst...@gmail.com:

 SO COOL!! the w2py shell

 what is the admin password that it sets when starts the server ?


 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Everyone,

 I just tweaked the plug-in a little bit.
 Please uninstall the plug-in completely and install it again to get it
 work
 Steps are the following:

1. Package Control - Remove Package - W2P
2. Restart Sublime
3. Package Control - Install Package - W2P
4. Restart Sublime

 Sorry for the inconvenience

 Regards
 Greg

 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt
 írta:

 thank u

 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 It should create a new entry in Tools - SublimeREPL - Web2py {app_name}
 I will check it again in the source code

 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a következőt
 írta:

 I still have the same problem.
 Should i see something like web2py in Tools - Python -?

 thank u

 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Ramos,

 I fixed an issue in the Add REPL support command
 I pushed the changes so w2p plugin should be updated automagicly via
 PackageControl.
 If you still have issues please let me know

 Regards
 Greg

 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta:

 I cant install web2py sublimeRepl via

 W2p:Add sublimeREPL support

 Just see on status bar Loading Repositories  and nothing more
 then i search for it and i get this only

 [image: Imagem inline 1]

 Any help ?
 i´m on windows 7

 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com:

 XDebug looks nice but is for php only ?


 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com:

 Few good links for sublime I thought I can share within the community if
 anyone is interested. The django sublime interface walks you through the
 entire sublime setup. I am sure, web2py will be same. That said, I couldn't
 have the ipython and terminal working  like anaconda. Or may be this is the
 best sublime can do.


 plugins available for debugging; for example:
 http://www.sitepoint.com/debugging-xdebug-sublime-text-3/

 Plugins for Python development:
 https://packagecontrol.io/packages/IPython%20Notebook

 https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/

 Navigating projects:

 http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/

 Package management:
 https://packagecontrol.io/installation

 Django interface:

 http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html








 On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote:

 Hi Ron,

 To be honest I am still learning the advanced features of Sublime, Python
 and Web2py :)
 I am not familiar

Re: [web2py] Re: Sublime Text web2py plugin

2015-06-12 Thread António Ramos
Ok.just some some...
Em 12/06/2015 17:27, António Ramos ramstei...@gmail.com escreveu:

 My list of missing Web2py IDE features


 http://code.tutsplus.com/articles/perfect-workflow-in-sublime-text-free-course--net-27293

 2015-06-12 16:50 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 I do not use sublime but could you list a list of features
 missing/problems with:
 https://bitbucket.org/kfog/w2p

 that would help us improve it.

 On Friday, 12 June 2015 03:41:49 UTC-5, Gergely Orosz wrote:

 When I started to use web2py I loved the idea of the web IDE.
 As time passed by and I learned ins and outs of the framework and
 sublime text I started to use only Sublime.
 I searched the plugins I need to do everything from sublime while do my
 daily tasks (commit to git repository, resolve merge conflicts, query
 database, deploy over SSH)
 The one thing was missing is web2py 'integration' I call it integration
 but it a bunch of helpful stuff I use day after day while I work with web2py
 I don't want to compete with the web IDE, I don't want to convert
 anybody to Sublime.
 I'd like to make my life easier and help others

 That is the story behind the W2P plugin.

 2015. június 11., csütörtök 22:44:38 UTC+2 időpontban Ramos a következőt
 írta:

 In my opinion we should leave the IDE to an external tool like Sublime
 that has a lot more power over the web2py web IDE and get the people behind
 the web IDE to concentrate just on web2py that need a litle REVAMPING.

 For me the webIDE its very usefull but not compared to sublime or other
 like it

 2015-06-11 19:29 GMT+01:00 Ron Chatterjee achatte...@gmail.com:

 Don't want to go Off Topic, but if we can just have auto complete in the
 web2py web based IDE, then what does the sublime provides extra over what
 we already have? I like sublime. That's not the point. I believe the
 current IDE is good for what it does just need the auto complete and few
 minor add ons.


 On Thursday, June 11, 2015 at 9:21:41 AM UTC-4, Ramos wrote:

 I got a database locked error opening web2py shell in sublime
 I think this is a sqlite problem right ?

 2015-06-11 14:15 GMT+01:00 António Ramos ramst...@gmail.com:

 just saw it in sublime-settings

 2015-06-11 14:07 GMT+01:00 António Ramos ramst...@gmail.com:

 SO COOL!! the w2py shell

 what is the admin password that it sets when starts the server ?


 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Everyone,

 I just tweaked the plug-in a little bit.
 Please uninstall the plug-in completely and install it again to get it
 work
 Steps are the following:

1. Package Control - Remove Package - W2P
2. Restart Sublime
3. Package Control - Install Package - W2P
4. Restart Sublime

 Sorry for the inconvenience

 Regards
 Greg

 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt
 írta:

 thank u

 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 It should create a new entry in Tools - SublimeREPL - Web2py {app_name}
 I will check it again in the source code

 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a következőt
 írta:

 I still have the same problem.
 Should i see something like web2py in Tools - Python -?

 thank u

 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com:

 Hi Ramos,

 I fixed an issue in the Add REPL support command
 I pushed the changes so w2p plugin should be updated automagicly via
 PackageControl.
 If you still have issues please let me know

 Regards
 Greg

 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta:

 I cant install web2py sublimeRepl via

 W2p:Add sublimeREPL support

 Just see on status bar Loading Repositories  and nothing more
 then i search for it and i get this only

 [image: Imagem inline 1]

 Any help ?
 i´m on windows 7

 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com:

 XDebug looks nice but is for php only ?


 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com:

 Few good links for sublime I thought I can share within the community if
 anyone is interested. The django sublime interface walks you through the
 entire sublime setup. I am sure, web2py will be same. That said, I couldn't
 have the ipython and terminal working  like anaconda. Or may be this is the
 best sublime can do.


 plugins available for debugging; for example:
 http://www.sitepoint.com/debugging-xdebug-sublime-text-3/

 Plugins for Python development:
 https://packagecontrol.io/packages/IPython%20Notebook

 https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/

 Navigating projects:

 http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/

 Package management:
 https://packagecontrol.io/installation

 Django interface:

 http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html








 On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote:

 Hi Ron,

 To be honest I

Re: [web2py] Re: What you think about this logotype?

2015-07-03 Thread António Ramos
see mine
I see 3 times the w or the 3 letter.
[image: Imagem inline 1]


2015-07-03 17:05 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 :-)


 On Friday, 3 July 2015 11:00:22 UTC-5, Алексей Трифонов wrote:


 https://lh3.googleusercontent.com/-J5C4HQ_O_Js/VZUl2s5jZHI/ACg/Lrgfh1llmJo/s1600/web2py.png

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


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


Re: [web2py] Re: For those using ractive or vuejs. I need help !!

2015-06-28 Thread António Ramos
I dont use ractive. Only Vuejs and a template inside a script tag is what i
learned from the docs and video tutorials.

Is the

script type=text/x-template id=pote
span class=label label-info(%name%)/span
div
ul class=sortable-list
li v-repeat=item:items|only name macro-doses
pote='(%name%)' mp='(%item%)' myid=(%name%)
items=(%items%)/macro-doses/li
/ul
/div
/script

accepted by web2py without any compilation so vue can do its job?

Regards

2015-06-28 9:23 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 I am not sure but I think you are mixing ractive and vue syntax.

 In ractive you have a script/ and a div id=target/. The script is
 rendered in the target.

 In vue (which you use), the ractive code is in place but you still use a
 script instead of a div.

 Massimo


 On Saturday, 27 June 2015 12:34:31 UTC-5, Ramos wrote:

 No help :)
 Im doomed...
 Em 26/06/2015 17:29, António Ramos ramstei...@gmail.com escreveu:

 Hello ,
 so far so good i created my second vuejs page inside web2py and this
 time using components.


 my doformind.js has some components and changes the delimiters to avoid
 colision with curlies.

 Vue.config.delimiters = ['(%', '%)'];
 Vue.component('pote', {
   props: ['name','items'],
   template: '#pote' *- refering to the html template inside my page*
 });
 etc


 my html ...


 {{response.files.append(URL(r=request,c='static',f='/js/vue.min.js'))}}

 {{response.files.append(URL(r=request,c='static',f='/js/vue-resource.min.js'))}}
 {{response.files.append(URL(r=request,c='static',f='/js/toastr.js'))}}
 {{response.files.append(URL(r=request,c='static',f='/js/jquery-ui.js'))}}

 *{{response.files.append(URL(r=request,c='static',f='/js/doformind.js'))}}*
 {{response.files.append(URL(r=request,c='static',f='/css/toastr.css'))}}

 *{{response.files.append(URL(r=request,c='static',f='/css/doformind.css'))}}*
 {{extend 'layout.html'}}


 script type=text/x-template id=pote
 span class=label label-info(%name%)/span
 div
 ul class=sortable-list
 li v-repeat=item:items|only name
 macro-doses pote='(%name%)' mp='(%item%)' myid=(%name%)
 items=(%items%)/macro-doses/li
 /ul
 /div
 /script


 
 
 somewhere in my page i have this component

 pote name=1 items=(%items%)/pote



 All of this works very well outside web2py.

 Inside web2py i get a blank page and in chrome dev tools i see that
 pote name=1 items=(%items%)/pote
 was translated to
 pote name=1 items=[object Object],[object Object]/pote

 instead of

 pote name=1
 span class=label label-info1/span
 div
 ul class=sortable-list ui-sortable
 /ul
 /div/pote

 the items object have to elements each a json object.

 What could be the problem ?

 I suspect that the

 script type=text/x-template id=pote
 is not being correctly interpteted.

 Any comments would be very appreciated.

 Thank you

 António

   --
 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: OFF Topic -RiotJS

2015-06-11 Thread António Ramos
Massimo
why do you call Vuejs a stripped  version? what does it lack compared to
Ractive?

Thank you
António

2015-06-10 4:05 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 vue.js look like a stripped version of ractive.js. The syntax is identical
 for what it provides.


 On Tuesday, 9 June 2015 16:36:49 UTC-5, Ramos wrote:

 No, of course not.

 On the contrary, i know hate angularjs after reading about vuejs.

 I wish i knew it before

 2015-06-09 19:58 GMT+01:00 Dave S snidely@gmail.com:



 On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote:

 another one bites the dust.


 bites the dust is used for something that (or someone who) has been
 shot down; a final face-plant.

 Are you saying the link below is a dead tool?




 http://vuejs.org/guide/index.html

 the docs are very extensive


 /dps



 2015-06-08 17:38 GMT+01:00 Derek sp1...@gmail.com:

 I just hate non-compliant html. I've always been drawn to html
 compliant templates, like TAL (Template Attribute Language).

 In any case, I see that it generates html, and it is a lot smaller
 than the alternatives. I'd be willing to give this a shot.


 On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote:

 just to share some noise on the UI for those looking at angular
 reactjs polymer ractive and so on

 https://muut.com/riotjs/

 any experience or comments ?

 Regards

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


-- 
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: initilize GPIO in web2py-Scheduler

2015-05-23 Thread António Ramos
Why do people use raspbery pi ?

I use electric imp or even esp8266 and have my sensors connected to the
cloud where the app lives.

No more problems with setting up linux, drivers, etc

Its IOT time!!



2015-05-22 19:55 GMT+01:00 Niphlod niph...@gmail.com:

 every scheduler task is executed within an isolated process. I don't know
 the internals of GPIO but I guess you'd need either:
 - istantiate gpio, retrieve the value, act upon it (e.g. setting a new
 value)
 - set two tasks: one (the 1st) that either is repetitive but stores
 somewhere if it ran correctly or that doesn't repeat itself, and the other
 one to repeat (2nd to nth)


 On Friday, May 22, 2015 at 5:36:59 PM UTC+2, Aydin S wrote:

 I'm trying to set a pin to high (for instance) in a periodic way using
 web2py in an embedded linux.
 I set the GPIO to output for example :
 GPIO.setup(pin 20, output)
 and then
 if xy
 GPIO.setup(pin 20, high)

 and run the scheduler every 10 second
 The problem with this is that every 10 second when it gets to the line
 which sets the pin to be output, it turns it low (that's the default).

 I am frustrated with scheduler to get it to run two functions so that I
 can put the pin initialization in one which runs only at startup. I tried
 to use the crontab -e and initialize there, but it looks like web2py models
 does not have access to those and failed to run.

 I've been thinking to make a creative way to bypass GPIO setup after
 first run of scheduler and I was successful but scheduler fails in the
 second repeat because does not know the setup apparently.

 Web2py experts please help me find out the solutionThanks


  --
 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: Sublime Text web2py plugin

2015-05-21 Thread António Ramos
 Search for SublimeREPL: Web2py {your application name}
 It should start interactive console for your web2py application

 2015. május 6., szerda 12:34:17 UTC+2 időpontban Ramos a következőt
 írta:

 On more question.
 i installed sublime repl but how do i get the web2py interactive
 console ?

 thank u

 2015-05-06 11:25 GMT+01:00 António Ramos ramst...@gmail.com:

 From the controller i can open the view

 From the view i should open the controller , not the view again...

 thank u

 2015-05-06 11:22 GMT+01:00 António Ramos ramst...@gmail.com:

 I have seen the light

 Keep working on it. Its very good...

 2015-05-06 10:06 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com
 :

 Once you installed the plugin restart Sublime Text
 After that you can use the command palette to check the
 available commands
 All prefixed all web2py related command with W2P
 if you press CTRL+SHIFT+P and start type W2P you will see all
 the available commands

 2015. május 6., szerda 10:44:20 UTC+2 időpontban Ramos a
 következőt írta:

 Thank you
 You say it can start and stop the server ...
 how ?

 2015-05-06 6:52 GMT+01:00 Gergely Orosz 
 oroszgerg...@gmail.com:

 Hi Ramos,

 You should add a web2py application folder to a Sublime Text
 prokeject
 1. Open Sublime go to the Project menu
 2. Choose Add folder to project option
 3. Browse your web2py application you like to work on

 You are ready to use the W2P plugin

 I am going to make the video tutorial on the weekend and also
 going to update the plugin read with these steps

 Thank you letting me know

 2015. május 5., kedd 13:16:36 UTC+2 időpontban Ramos a
 következőt írta:

 i installed it and get the message to add web2py to the
 project

 what project?

 you should do a 1 minute video to show how to use it

 thank u

 2015-05-05 7:43 GMT+01:00 Gergely Orosz 
 oroszgerg...@gmail.com:

 Thank you Massimo,

 I am going to improve it continuously

 2015. május 4., hétfő 18:24:34 UTC+2 időpontban Massimo Di
 Pierro a következőt írta:

 Nice. Thank you! I added link form the web2py examples/
 app.

 On Monday, 4 May 2015 05:28:55 UTC-5, Gergely Orosz wrote:

 Hi 4 All,

 I've started to develop a web2py plugin for Sublime Text
 3.
 I've implemented a few command I found very useful on my
 daily work.
 If you have any idea how can I make it better and useful
 please visit the below link and submit your feature request 
 there
 Thanks in advance

 You can find the plugin: https://bitbucket.org/kfog/w2p

 If you have any question please feel free to ask here or
 on the Issue tracker

 All the best
 Greg

  --
 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+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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/OHRC9fH1zHA/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+un...@googlegroups.com.
 For more

Re: [web2py] Re: When will we have a proper forum ?

2015-08-03 Thread António Ramos
Another one using the same thing

http://community.appgyver.com/



2015-08-03 13:45 GMT+01:00 Anthony abasta...@gmail.com:

 On Monday, August 3, 2015 at 8:12:14 AM UTC-4, Mirek Zvolský wrote:

 Some WORKING place for addon software (like plugins) would be much more
 useful.


 Why we cannot have a list of addons at the web2py.com directly ? Linked
 from one button at the Download page ? And maybe with warning that it is
 unmaintained?


 http://www.web2pyslices.com/home?content_type=Package

 --
 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: web2py inspired framework

2015-07-31 Thread António Ramos
this is another simple python web framework .

http://toastdriven.com/blog/2009/mar/07/itty-sinatra-inspired-micro-framework/



2015-07-31 18:26 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com:

 I think the more the merrier. It has less batteries included when compared
 to web2py but it will be appealing to people who like Flask over web2py.
 The author, Giovanni, is one of the core web2py developers so he knows what
 he is doing!


 On Friday, 31 July 2015 12:11:18 UTC-5, eric cuver wrote:

 What do you think of this framework which is clearly inspired by web2py

 http://weppy.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.


-- 
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] When will we have a proper forum ?

2015-07-29 Thread António Ramos
I hate google groups because its not easy to find help so people keep
asking the same question over and over again.
we should follow other ideas as Massimo said
Ideas we had, ideas we...

This one is very good as an example.
https://forums.meteor.com
A lot easier to learn from something like this...

Regards
António

-- 
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: When will we have a proper forum ?

2015-08-05 Thread António Ramos
That is tooo archaic...

I can have proposals in my email but a CRM is best suited right ?

From a noobie point of view, using a dedicated app he could easily see hot
topics that he didn't new existed. and this is a big advantage for me.
We can see the big picture ahead.
i´m not limited to my limited knowledge because i can only find what i´m
looking for using only emails.
There will be a lot of good info that i will never see.






2015-08-05 15:13 GMT+01:00 Richard Vézina ml.richard.vez...@gmail.com:

 I like receive all email from the list in a dedicated mail box (gmail), I
 can then easily search in the question and answer...

 :)

 Richard

 On Wed, Aug 5, 2015 at 9:12 AM, JorgeH jorgeh...@gmail.com wrote:

 I have been using this forum for years, and NEVER EVER have used email.

 I visit the web forum:

 https://groups.google.com/forum/#!forum/web2py

 And in the settings I chosed not to get emails:


 https://lh3.googleusercontent.com/-c7RcSln149E/VcILhHfyqLI/AKA/El54kEVVwdo/s1600/groups1.png



 https://lh3.googleusercontent.com/-e1C_qez8RPI/VcILl6fD7CI/AKI/-R4cgBEacrI/s1600/groups2.png






 On Wednesday, August 5, 2015 at 3:01:00 AM UTC-5, xmarx wrote:


 It does have tags: https://groups.google.com/forum/#!tags/web2py


 but unfortunatelyit doesn't using effectively. because i think. most
 messages send and replied vie e-mail.


 it would be nice to have the following features in 'new forum' or
 whatever.
 1. transfer or copy all google groups messages to new forum.
 2. auto-tagging or tag-suggesting system.


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


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


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


[web2py] MVC vs Flux

2015-07-22 Thread António Ramos
https://medium.com/@amix3k/flux-vs-mvc-design-patterns-57b28c0f71b7



What does it mean for web2py MVC architecture ? Is there a better way?



Regards
António

-- 
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] another Web2py online book

2015-07-16 Thread António Ramos
Its in Portuguese

http://juliarizza.gitbooks.io/curso-web2py/content/

But its easier to navigate that the web2py.com online book.


Regards

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


Re: [web2py] Web2py is Badly designed framework and Does not scale

2015-07-15 Thread António Ramos
Look in the right side  under activity .
You will see Bruno saying  it...

Am i wrong too ?

2015-07-15 18:30 GMT+01:00 Anthony abasta...@gmail.com:

 I don't see where the second con is attributed to Bruno - no source is
 listed for that one.

 --
 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: Web2py is Badly designed framework and Does not scale

2015-07-17 Thread António Ramos
As AngularJS died to reborn in this rapidly changing web world, i think
web2py should also born again.


I see myself using web2py as a rest API, coding more and more with
javascript and less with python and i dont like it!

It feels so UGLY

When will we have web2py with new batteries included ?



Regards
António



2015-07-16 11:28 GMT+01:00 Michele Comitini michele.comit...@gmail.com:

 Added my 2¢ .
 I have many mission critical, emedded or huge projects on web2py, they
 make real work for real people.

 2015-07-16 4:37 GMT+02:00 Alex mrauc...@gmail.com:

 I never understood why ORM should be better than the DAL. Actually I
 think it's the other way around. I worked with ORM for years and I'm really
 happy I can now use only DAL. It's very easy to get performance problems
 with ORM when all references are automatically fetched, and then those
 references can trigger even more selects for their own references and so
 on... Usually we ended up to manually generate our selects and then just
 fill in the class instances. This approach can be done with DAL as well
 (and it should be much easier) - if someone needs entities.

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


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


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


Re: [web2py] Re: Web2py is Badly designed framework and Does not scale

2015-07-19 Thread António Ramos
web2bry!

2015-07-19 17:04 GMT+01:00 Anthony abasta...@gmail.com:

 On Sunday, July 19, 2015 at 11:10:19 AM UTC-4, eric cuver wrote:

 can we use  brython with web2py ?


 Sure. Brython simply generates Javascript code that then gets executed in
 the browser, so you can use Brython with web2py in the same sense that you
 can use Javascript with web2py.

 Anthony

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


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


[web2py] Building desktop apps with web2py ??

2015-07-20 Thread António Ramos
I know there is a post somewhere about this but i´m just sharing something
i found

http://electron.atom.io/

https://www.fyears.org/2015/06/electron-as-gui-of-python-apps.html

-- 
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] DAL alternatives

2015-10-22 Thread António Ramos
I agree with you except for the "kept secret" because it keeps away people
that could help make it even better.
and yes, i meant pyDAL

2015-10-22 14:53 GMT+01:00 Richard Vézina <ml.richard.vez...@gmail.com>:

> Do you mean pyDAL?
>
> If so, you have to consider that it is very young and may still seems to
> be web2py related which may make poeple think that they can't use it
> without web2py...
>
> I use to refer many StackOverflow asker to pyDAL as a way to solve their
> issue, I guess word of mouth is not in use enough.
>
> Anyway pyDAL is amanzing piece of software and I don't mind if it stays a
> really good kept secret...
>
> :)
>
> Richard
>
> On Thu, Oct 22, 2015 at 8:52 AM, António Ramos <ramstei...@gmail.com>
> wrote:
>
>> Why is there very litle interest in the DAL github repo (very litle forks
>> and stars) ?
>>
>> Are people using better alternatives or does it suffer from some lack of
>> publicity or even worse, people dont like it because they dont like web2py
>> either.
>>
>> Regards
>> António
>>
>>
>>
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] DAL alternatives

2015-10-28 Thread António Ramos
my inconvenients:

1 - Bootstrap, i need layout.html but dont want bootstrap. How do i get rid
of bootstrap or change it to semantic ?
 Bootstrap should not be a constraint but just an add-on.

2 - web2py custom forms and tables. Are nice tools but if they dont do what
you want you will have a big mess of code/style to customize it.
I prefer doing it frontend side with angular/Vuejs/etc. Gives me more
tools for my personal CV and the code looks better, however it lacks proper
data binding with web2py and i end up having 2 separate apps, one frontend
and one backend via REST. I dont like it.

Regards




2015-10-28 11:28 GMT+00:00 Bernard Letourmy :

> Hi Ramos,
> What's your project ?
> Because if you do some console, desktop or Python notebook doc.
> standalone pydal is there.
> But if you're looking at developing a web app or rest api
> Web2py Is quite good at it and quite well integrated with pydal  ;)
>
> Or what  inconvenience do you see with web2py for this project?
>
> Thanks
> Bernard
>
> --
> 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] DAL alternatives

2015-10-27 Thread António Ramos
pyDAL is the choice.

But if i use it outside web2py i need an alternative http server/rest
endpoint and something to auth clients.
What do you suggest to add to pyDAL ?

Regards
António

2015-10-22 14:56 GMT+01:00 António Ramos <ramstei...@gmail.com>:

> I agree with you except for the "kept secret" because it keeps away people
> that could help make it even better.
> and yes, i meant pyDAL
>
> 2015-10-22 14:53 GMT+01:00 Richard Vézina <ml.richard.vez...@gmail.com>:
>
>> Do you mean pyDAL?
>>
>> If so, you have to consider that it is very young and may still seems to
>> be web2py related which may make poeple think that they can't use it
>> without web2py...
>>
>> I use to refer many StackOverflow asker to pyDAL as a way to solve their
>> issue, I guess word of mouth is not in use enough.
>>
>> Anyway pyDAL is amanzing piece of software and I don't mind if it stays a
>> really good kept secret...
>>
>> :)
>>
>> Richard
>>
>> On Thu, Oct 22, 2015 at 8:52 AM, António Ramos <ramstei...@gmail.com>
>> wrote:
>>
>>> Why is there very litle interest in the DAL github repo (very litle
>>> forks and stars) ?
>>>
>>> Are people using better alternatives or does it suffer from some lack of
>>> publicity or even worse, people dont like it because they dont like web2py
>>> either.
>>>
>>> Regards
>>> António
>>>
>>>
>>>
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


[web2py] DAL alternatives

2015-10-22 Thread António Ramos
Why is there very litle interest in the DAL github repo (very litle forks
and stars) ?

Are people using better alternatives or does it suffer from some lack of
publicity or even worse, people dont like it because they dont like web2py
either.

Regards
António

-- 
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 and python3

2015-11-11 Thread António Ramos
What banks? can you share that info ?

2015-11-11 15:21 GMT+00:00 Massimo Di Pierro :

> As of today python 3 is used almost exclusively in schools. Do you know of
> any large company that uses Python 3? I do not. But I know many large
> companies that use Python 2, including banks.
>
>
> On Monday, 9 November 2015 01:36:40 UTC-6, Remco Boerma wrote:
>>
>> Great one Alex.
>>
>> While searching for web2py and python3 the first result i got was this
>> .
>>
>>
>>> Hi...I m total beginner in python with elastic search also Unicode ... I
>>> am looking for a wonderful framework & was keen on web2py..but just
>>> happened to read that its not compatible with python 3..
>>>
>>> Pl guide me abt this issue & in selecting framework
>>>
>>> With regards to all,
>>>
>>
>> I've been asked to start a new internship-company for a project i'm
>> involved in. And I so want to take those boys and girls on the web2py path,
>> but to ask of those new-to-the-market to invest in a legacy language (2020
>> is only 4 years from now) is something that feels odd to me. Especially
>> since i know the power and grace of web2py.
>>
>> I know the subject has been debated and debated but for the sake of these
>> students (and these are not the high university kind, but rather the
>> ground-work and getting-stuff-done folks) i would kindly ask to take the
>> future into consideration as well as our marketing because web2py is simply
>> droped out of the equation because of py2. I would love to teach those kids
>> web2py and be future proof. Many schools already teach things from a
>> hundred years ago, let's not do that in IT as well.
>>
>> Thank your for considering.
>>
>> Op vrijdag 6 november 2015 23:57:33 UTC+1 schreef Alex:
>>>
>>> web2py for python 3 would be great. I hope it comes rather sooner than
>>> later. I'd love to use python 3, no more str <-> unicode nonsense (which
>>> already caused many issues and wasted time for me), type hints (seems to
>>> have good support in PyCharm) and other new features. I think the current
>>> situation could also scare away potential new users when they see that
>>> web2py does not support python 3.
>>>
>>> pyDAL seems to be already compatible with python 3. Is it not possible
>>> to make the remaining parts also compatible or are there completely new
>>> concepts planned? I for one would completely remove the FORM code - it's
>>> nice and easy to get something up and running but difficult to style (no
>>> clear separation of backend/frontend) and extend. I'm using knockout (I
>>> guess any data binding js lib will do fine) which is very flexible and easy
>>> to understand. That should be the preferred way to do forms and recommended
>>> in the book. But that's just my opinion. No more FORM would mean less code
>>> to port to python 3 ;)
>>>
>>> Alex
>>>
>>> On Wednesday, November 4, 2015 at 4:37:56 PM UTC+1, Ramos wrote:

 @massimo
 When will it be available ?


 2015-11-04 14:38 GMT+00:00 Massimo Di Pierro :

> There will be a new framework similar to web2py for python 3. web2py
> has to be backward compatible and it is pointless to port it to python 3.
>
>
> On Wednesday, 4 November 2015 06:25:40 UTC-6, Jim Gregory wrote:
>>
>> I know this has come up in the past, but it hasn't been asked in a
>> while.
>>
>> Is there ever going to be a usable and maintained Python3-compatible
>> fork of web2py?
>>
>> The latest edition of Fedora now ships with Python3 by default. It's
>> the default version used in Django's tutorial.
>>
>> I'm not using Python3 now, but I can see the day when I inevitably
>> will. I don't want to invest the time in a framework if I know I'll have 
>> to
>> abandon it later.
>>
> --
> 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
- 

Re: [web2py] Re: what if i want bootstrap with semanticui ?

2015-11-15 Thread António Ramos
This is the login form where i see bootstrap all over the place.




First
nameLast
nameE-mailPasswordConfirm Password






If i want to use semantic instead i not only have to change layout but also
have to look for all of the forms. and remove css classes.

I might need more time than i took to learn python.



I think web2py is very above average in an overall review but this issue
cracks my head completely. why ? and why not completely agnostic ?

Web2py is not itself a mainstream framework but decided to glue itself on a
apparently mainstrean css framework that may not be the best choice forever
and may suffer from that apart the issue of python 2 vs python 3 ?

in this aspect i think weppy is in a more clever path.

Just thinking 

will we have one day

web2py create app1
web2py remove bootstrap
web2py add semantic-ui

Regards
António






2015-10-14 4:49 GMT+01:00 Anthony :

> On Tuesday, October 13, 2015 at 12:35:31 PM UTC-4, Ramos wrote:
>>
>> I like semantic a lot better than bootstrap.
>>
>>
>> Why the hell did you glue bootstrap with web2py ?
>>
>
> I wouldn't say Bootstrap is "glued" with web2py. web2py comes with an
> optional scaffolding application that includes a front end, and that front
> end happens to be based on Bootstrap. The front end has to be based on
> *something* -- if we choose Semantic, then folks will ask why not
> Bootstrap? Given the popularity and prevalence of Bootstrap, it isn't a bad
> choice.
>
> More generally, I would argue that the choice of front end framework for
> the scaffolding app is not *that *important. The fact is, if you want to
> make any significant customizations to the look and feel of the UI, it
> isn't much harder to start completely from scratch with some template based
> on another framework than it is to try to alter the existing app (most of
> the work is in customizing layout.html and developing form and grid
> styles). On the other hand, if you don't want any significant
> customization, then it shouldn't much matter what framework is used, as
> long as the end result looks decent and is usable.
>
> Anthony
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] Re: what if i want bootstrap with semanticui ?

2015-11-15 Thread António Ramos
Thank you Anthony. As always very informative.

There is so much knowledge waiting for us about web2py internals if we
start from scratch.
Things that we take for granted and never questioned them.
there should be a chapter about "Starting from scratch" in the book. It
will help me and others.

Regards
António


2015-11-15 15:47 GMT+00:00 Anthony :

> By the way, if you don't want to use the scaffolding app at all, to create
> a new app, just make a new empty folder inside the /applications folder.
> Once you make a single request to the app (which will initially yield an
> error), web2py will automatically create all the necessary (empty)
> sub-folders (i.e., controllers, models, etc.). You can then create your
> entire app from scratch as you please, just like with other frameworks that
> provide no scaffolding.
>
> Anthony
>
>
> On Sunday, November 15, 2015 at 10:41:49 AM UTC-5, Anthony wrote:
>>
>> On Sunday, November 15, 2015 at 9:37:34 AM UTC-5, Ramos wrote:
>>>
>>> This is the login form where i see bootstrap all over the place.
>>>
>>
>> I think there is some confusion. Just to be clear, Bootstrap is *not*
>> the default formstyle used by web2py -- the default formstyle is the
>> generic "table3cols" style. Bootstrap is used only in the web2py
>> scaffolding app, which is completely optional. The reason you see Bootstrap
>> form styles in the scaffolding app is because of this single line in db.py:
>>
>> response.formstyle = myconf.take('forms.formstyle')
>>
>> The forms.formstyle setting defined in the /private/appconfig.ini
>> settings file is set to "bootstrap3_inline". If you edit appconfig.ini or
>> remove the line above, you're back to the "table3cols" default.
>>
>> If i want to use semantic instead i not only have to change layout but
>>> also have to look for all of the forms. and remove css classes.
>>>
>>
>> As noted above, no need for this. Of course, you may need to define your
>> own formstyle to work with Semantic-UI, but that will be true for any
>> front-end framework with idiosyncratic forms markup requirements.
>>
>>
>>> I think web2py is very above average in an overall review but this issue
>>> cracks my head completely. why ? and why not completely agnostic ?
>>>
>>
>> Hopefully it is now clear that the core framework *is *front-end
>> agnostic and not tied to Bootstrap. The front-end scaffold is based on
>> Bootstrap, but you can simply replace the layout.html and switch to
>> whatever you want.
>>
>> in this aspect i think weppy is in a more clever path.
>>>
>>
>> weppy (like most other frameworks) provides no front-end scaffolding app
>> at all, so even if you simply remove web2py's front-end scaffold and start
>> from scratch, you are no worse off than you would be with weppy (where you
>> have to start from scratch whether or not you want to use Bootstrap).
>>
>> Anthony
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] web2py course on pluralsight

2015-11-09 Thread António Ramos
That should be advertised on web2py.com

2015-11-09 1:02 GMT+00:00 Jason Solack :

> just wanted to call attention to a training on pluralsight on web2py.  I
> know a few people that have taken it and it gives a good introduction to
> the framework.  I've been using web2py for about a year now and it's
> exciting to see training on a mainstream sight like this.
>
> Jason
>
>
> --
> 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: web2py and python3

2015-11-04 Thread António Ramos
@massimo
When will it be available ?


2015-11-04 14:38 GMT+00:00 Massimo Di Pierro :

> There will be a new framework similar to web2py for python 3. web2py has
> to be backward compatible and it is pointless to port it to python 3.
>
>
> On Wednesday, 4 November 2015 06:25:40 UTC-6, Jim Gregory wrote:
>>
>> I know this has come up in the past, but it hasn't been asked in a while.
>>
>> Is there ever going to be a usable and maintained Python3-compatible fork
>> of web2py?
>>
>> The latest edition of Fedora now ships with Python3 by default. It's the
>> default version used in Django's tutorial.
>>
>> I'm not using Python3 now, but I can see the day when I inevitably will.
>> I don't want to invest the time in a framework if I know I'll have to
>> abandon it later.
>>
> --
> 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: WEB2PY FOR MANAGING RESOURCES

2015-10-19 Thread António Ramos
2015-10-17 8:19 GMT+01:00 Laurent Lc :

> grr


http://fullcalendar.io/

-- 
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: Can web2py "front-end" an API?

2015-10-19 Thread António Ramos
DAL as a webservice ? like a REST endpoint ?

There is something like that and i like it

http://loopback.io/


2015-10-18 13:48 GMT+01:00 Anthony :

> Maybe check out the IMAP adapter
>  for
> some ideas.
>
> Anthony
>
>
> On Sunday, October 18, 2015 at 1:25:50 AM UTC-4, pbreit wrote:
>>
>> Is there an easy way to use web2py to "front-end" and API? What I mean by
>> that is that given a public API (for example, Stripe's API), could I write
>> some models that correspond to the API structure and then call the DAL as
>> if the API was a back-end DB? Does that make any sense?
>>
> --
> 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: Has anyone done a detailed security analysis or attempted a methodical attack on web2py?

2015-10-08 Thread António Ramos
Niphold,
i dont see where you are pointing on  https://www.qualys.com/
where is the web2py app that survived the security scan ?

thank you

2015-10-05 11:25 GMT+01:00 Niphlod :

> here in ***undisclosed company web2py survives a
> https://www.qualys.com/ security scan with no reports whatsoever.
>
>
> On Sunday, October 4, 2015 at 2:47:44 PM UTC+2, Ian Ryder wrote:
>>
>> Hi, just looking back over anything about penetration testing and web2py
>> - does anyone know of any recent (or any at all) testing of web2py? We're
>> getting close to our first customers on an app we've been developing the
>> last year so really need to try and pick it to pieces now while we have a
>> few months to work on anything we need to.
>>
>> Thanks
>> Ian
>>
>> On Tuesday, 10 July 2012 19:42:46 UTC+2, Massimo Di Pierro wrote:
>>>
>>> Thank you Dave for the feedback. It would be nice to have the results of
>>> those  tests (Cenznic, Hailstorm, Quails) published somewhere. Once in a
>>> while people ask about this.
>>>
>>> Massimo
>>>
>>> On Tuesday, 10 July 2012 11:28:39 UTC-5, Dave wrote:

 Well

 I can't say that I have tested the current trunk version, but last
 December I ran a pretty exhaustive penetration test against a site
 developed web2py.  The results were very good.  No findings above low.  The
 low findings were insignificant.  I ran Cenzic Hailstorm, Qualys and one
 other automated vulnerability test suite (I cant remember which at the
 moment) against it without issue.

 Here are some things that can cause issue though...

 * anywhere you use the XML() method in a view you should make sure you
 have validation turned on.  Even though the framework is resilient and does
 a good job of sanitizing data in & out, you can still end up in XSS or XSRF
 trouble with XML().

 * redirects can trip up or slow down a lot of vuln scanners.  Watch out
 if you perform your own testing that you're not getting false negatives.

 I know some people that would take on a more "formal" assessment if
 there is consensus

 Dave

 On Monday, July 9, 2012 11:48:39 AM UTC-4, scausten wrote:
>
> One of the awesome things about web2py is of course the built-in and
> well-documented resilience against a range of attack methods, but I was
> wondering if anyone has attempted a methodical (white-hat) attack to probe
> any potential weaknesses?
>
> Just out of interest :)
>
 --
> 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] The shell on web2py does not execute any instruction

2015-10-20 Thread António Ramos
shell sucks :P

2015-10-20 15:59 GMT+01:00 Vladimir Torres :

> Good Morning users about web2py
>
> I am learning about web2py, I must to connect to Oracle data base, I want
> to test the conecction DAL from shell but it only shows "none", any
> instruction executed shows "none",
> someone knows why happen this?.
>
> 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.
>

-- 
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] PyCharm license for web2py dev - who wants?

2015-10-12 Thread António Ramos
Picharm eats more memory than sublime.

In sublime i have everything, w2py console and server logs so

2015-10-12 11:01 GMT+01:00 Paolo Amboni :

> I'm using pycharm community edition, that for what I understand is free.
> Are these licenses for the pro version?
> Is the pro version supporting web2py?
> If yes i'm iterested.
>
> Il giorno domenica 11 ottobre 2015 21:29:54 UTC+2, Encompass solutions ha
> scritto:
>>
>> I can try it if you want. +1
>>
>> On Sun, Oct 11, 2015, 22:21 Francisco Ribeiro 
>> wrote:
>>
>>> Hello all,
>>>
>>> for those who know PyCharm is a great IDE from JetBrains that provides
>>> free licenses for Open Source projects like web2py (
>>> https://www.jetbrains.com/buy/opensource/?product=pycharm ). To request
>>> such a license, I need to know how many of you would want one of these as
>>> well so I can provide them with a number of seats.
>>>
>>> A "+1" response for me is enough but I will also need your email address
>>> to send you the license key (which you can send on a private message).
>>>
>>> Kind regards,
>>> Francisco
>>>
>>> --
>>> 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: web2py for onion.io ?

2015-10-13 Thread António Ramos
That is not my idea.
I´m going down the specs to see the smallest web2py enabled IOT device.

Thank you

2015-10-13 11:24 GMT+01:00 Leonel Câmara :

> It's a little low on the memory side but it runs python so I don't see why
> not as long as you don't expect to be serving a lot of requests. I would
> probably prefer a raspberry pi because it has quite a lot more memory.
>
> --
> 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] web2py for onion.io ?

2015-10-13 Thread António Ramos
is is possible to have web2py inside this ?

https://onion.io/omega/

Regards

António

-- 
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] what if i want bootstrap with semanticui ?

2015-10-13 Thread António Ramos
I like semantic a lot better than bootstrap.


Why the hell did you glue bootstrap with web2py ?

It should be kind of a "plugin" like npm install bootstrap or something
like that.
I know there has been some discussion about it but using google groups mess
i cant find it so i need to ask again

Regards
António

-- 
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 and AngularJs route collision

2015-07-08 Thread António Ramos
Forget Angular, use Vuejs or Ractivejs

You will live longer...

2015-07-08 15:30 GMT+01:00 lyn2py lyn...@gmail.com:

 use web2py for routing and angular for frontend


 On Wednesday, July 8, 2015 at 8:53:41 PM UTC+8, Aravind S wrote:

 Our *web2py* project has two parts :

 1) Dashboard console (Single Page App).

 2) Customer Form.

 We are now trying to rebuild the *dashboard console* using *Angular js* which
 sits under the following url:

 http://domain.com/app/controller/function?id=b2eemail=a...@abc.com#/

 *Issue :* Angular routes are re-routed by web2py which is undesirable.

 *Question :* How do I disable the web2py routing for that particular
 controller-function? Or any other possible solutions?

 I've written my angular-app logics under *App/static/angular_app/* and
 views are in*App/static/angular_app/views* (web2py static folder)

 Please take a look at my stackoverflow post:


 http://stackoverflow.com/questions/31182466/web2py-and-angularjs-route-collision

  --
 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: Web2py application running very slow on rocket server in production mode

2015-07-08 Thread António Ramos
a  server with 8 GB of RAM, 8 Core processor should not be slow even with
rocket.

Maybe your code is not very clean :P

I had web2py running in a raspberry pi


2015-07-08 6:49 GMT+01:00 Ramashish Gaurav ramashis...@gmail.com:

 Hello Richard,

 I appreciate your interest in my issue. I tried looking into the script
 folder of web2py, however did not find any stage/production file or
 script. Can you please explain in detail what you are trying to say.

 On Wednesday, July 8, 2015 at 12:37:16 AM UTC+5:30, Richard wrote:

 Rocket is for development... Apache, Nginx IIS (microsoft web server),
 etc. are production web servers...

 You may have a look in web2py scripts folder there is basic
 stage/production facilitating script that may help you set up you
 production environment... Let says at start more a stage environment...

 Richard

 On Tue, Jul 7, 2015 at 3:04 PM, Ramashish Gaurav ramas...@gmail.com
 wrote:

 Hello Leonel!

 Thanks for your interest. Can you explain a bit more about IIS and
 fastcgi How to use it ? Is it an alternative to Apache or Rocket or is
 it just for running  testing phase of the app?

 On Tuesday, July 7, 2015 at 10:41:46 PM UTC+5:30, Leonel Câmara wrote:

 Well rocket is slow. Use IIS and fastcgi.

  --
 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] SQlite to Postgres insert problems

2015-11-18 Thread António Ramos
Be carefull that imported records will get a fresh new id and because of
that you may get that error.
;)
Em 18/11/2015 15:35, "Carla Raquel"  escreveu:

> I'm having some troubles importing from csv files while using a Postgres
> connection, when a table has one or more references to other tables like so:
>
> db.define_table('Extension',
> Field('Person',db.auth_user),
> Field('Supervisor',db.auth_user),
> Field('Number','integer'),
> Field('Description','text')
>
>
>
> I have created this and the auth_user table on Postgres and imported the
> auth_user contents from the csv file with no problems. I also have no
> problems importing to other tables that have no external references. I have
> the following error: ('Error', '23503','insert or update on table
> "extensao" violates foreign key constraint "extension_person_fkey"'). Any
> ideas?
>
> --
> 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: web2py and python3

2015-11-14 Thread António Ramos
weppy looks like a short webp2y environment, however lacks some good
documentation like web2py and all of the code samples are very short and
errors come often.
Seems that the only one helping is the "creator" itself.
Unfortunately i dont see it as a good alternative to web2py.

At least web2py has a lot of people helping everybody.



2015-11-13 17:49 GMT+00:00 Jim S :

> What are the chances that weppy (www.weppy.org) becomes the Python 3
> version of web2py?
>
> I'm working with the newly available, officially supported Python
> implementation on IBM i (formerly AS/400) and it is Python version 3.4 so
> web2py isn't an option for me.  Is there any news or direction for people
> forced to use Python 3?  I really don't want to give up my web2py knowledge
> and move to another framework.  The other big guns (django, flask, bottle,
> pyramid) all have Python 3 versions.
>
> Thoughts?
>
> -Jim
>
>
> On Thursday, November 12, 2015 at 6:41:49 PM UTC-6, Massimo Di Pierro
> wrote:
>>
>> I do not think it is a secret. As far as I know the security pricing
>> infrastructure of Bank of America is based on proprietary object database
>> built in Python and the JP Morgan Chase has been working for some time on
>> an internal trading platform based on Python (do not know if it is in use
>> at this time). Also I have consulted with some local trading companies in
>> Chicago that use Python+pytable+numpy+hdf5.
>>
>> Here is a source
>> https://www.quora.com/Why-are-banks-like-JP-Morgan-and-Bank-of-America-Merrill-Lynch-using-Python-to-replace-historic-legacy-systems-built-in-Java-C++
>> but I have my own sources. :-)
>>
>> In fact a friend told me Bank of America uses web2py too although not for
>> business critical apps where they use proprietary code, but for interfacing
>> some of their Air Conditioning systems. I have been unable to verify this
>> information. I know other banks or large financial institutions that also
>> use web2py for some of internal non-business critical development.
>>
>> Massimo
>>
>> On Wednesday, 11 November 2015 09:34:41 UTC-6, Ramos wrote:
>>>
>>> What banks? can you share that info ?
>>>
>>> 2015-11-11 15:21 GMT+00:00 Massimo Di Pierro :
>>>
 As of today python 3 is used almost exclusively in schools. Do you know
 of any large company that uses Python 3? I do not. But I know many large
 companies that use Python 2, including banks.


 On Monday, 9 November 2015 01:36:40 UTC-6, Remco Boerma wrote:
>
> Great one Alex.
>
> While searching for web2py and python3 the first result i got was this
> .
>
>
>> Hi...I m total beginner in python with elastic search also Unicode
>> ... I am looking for a wonderful framework & was keen on web2py..but just
>> happened to read that its not compatible with python 3..
>>
>> Pl guide me abt this issue & in selecting framework
>>
>> With regards to all,
>>
>
> I've been asked to start a new internship-company for a project i'm
> involved in. And I so want to take those boys and girls on the web2py 
> path,
> but to ask of those new-to-the-market to invest in a legacy language (2020
> is only 4 years from now) is something that feels odd to me. Especially
> since i know the power and grace of web2py.
>
> I know the subject has been debated and debated but for the sake of
> these students (and these are not the high university kind, but rather the
> ground-work and getting-stuff-done folks) i would kindly ask to take the
> future into consideration as well as our marketing because web2py is 
> simply
> droped out of the equation because of py2. I would love to teach those 
> kids
> web2py and be future proof. Many schools already teach things from a
> hundred years ago, let's not do that in IT as well.
>
> Thank your for considering.
>
> Op vrijdag 6 november 2015 23:57:33 UTC+1 schreef Alex:
>>
>> web2py for python 3 would be great. I hope it comes rather sooner
>> than later. I'd love to use python 3, no more str <-> unicode nonsense
>> (which already caused many issues and wasted time for me), type hints
>> (seems to have good support in PyCharm) and other new features. I think 
>> the
>> current situation could also scare away potential new users when they see
>> that web2py does not support python 3.
>>
>> pyDAL seems to be already compatible with python 3. Is it not
>> possible to make the remaining parts also compatible or are there
>> completely new concepts planned? I for one would completely remove the 
>> FORM
>> code - it's nice and easy to get something up and running but difficult 
>> to
>> style (no clear separation of backend/frontend) and extend. I'm using
>> knockout (I guess any data binding js lib will do 

Re: [web2py] Web2py - Front-end performance optimization tutorial

2015-09-14 Thread António Ramos
speaking about optimization , here is my homework
https://github.com/ramstein74/Coffee_Jade_Stylus_inside_web2py

2015-09-14 15:11 GMT+01:00 Louis Amon :

> Indeed I should look into contributing the book at some point. Still feel
> a bit too noobish for that just yet ^^
>
> As for Heroku & Gzip, here's the official source to my info:
> https://devcenter.heroku.com/articles/http-routing#gzipped-responses
>
> On Monday, September 14, 2015 at 5:26:07 AM UTC+2, Kiran Subbaraman wrote:
>>
>> Louis,
>> Thanks for putting this together. There are a bunch of performance tips
>> in the web2py book too. Wondering if your compilation can find a home
>> there. Also, in another thread, you had mentioned about Heroku deployments,
>> and how it requires the web application to perform compression of assets,
>> and not the web-server. That is a good thing to know, and one which needs
>> to be captured some place accessible (web2py book, again?).
>>
>> 
>> Kiran Subbaramanhttp://subbaraman.wordpress.com/about/
>>
>> --
> 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][OT] Workflow

2015-09-16 Thread António Ramos
My company and many others would buy a web workflow framework. for example
a Workflow as a service...

We dont want blogs we want real enterprise tools.

2015-09-16 3:11 GMT+01:00 Richard Vézina :

> I thought it could be used for workflow management...
>
> Richard
>
> On Tue, Sep 15, 2015 at 4:33 PM, Niphlod  wrote:
>
>>
>>
>> On Tuesday, September 15, 2015 at 7:16:08 PM UTC+2, Richard wrote:
>>>
>>> I should try it, you right, it on my todo since a lot of time... But
>>> eventually, I will need workflow not exactly related to task, but for
>>> general purpose...
>>>
>>
>> got distracted.why mentioning luigi then ?
>>
>> if you need general purpose unrelated to tasks, use SpiffWorkflow or
>> fysom.
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] Re: web2py SPA(single page application)

2015-09-16 Thread António Ramos
My favourite is Vuejs
learn from here

http://vuejs.org/guide/
https://laracasts.com/series/learning-vuejs
you can go very crazy with it


2015-09-16 15:05 GMT+01:00 Márcio Almeida 
:

> Thank you, I will study it.
> If anyone has more information, please post.
>
> Em segunda-feira, 14 de setembro de 2015 22:14:53 UTC-3, Márcio Almeida
> escreveu:
>>
>> Hi, I'm trying to create a spa-like application to not reload it whenever
>> you change page, I tried example of web2pyslices but
>> only charges the index page, the other I did not know how to load (
>> http://www.web2pyslices.com/slice/show/2030/creating-a-single-page-app-with-web2py
>> ).
>> Has anyone had any experience with this or know how to evolve the example
>> of web2pyslices?
>> Some solution in web2py?
>> I think some will tell me about angularjs etc, okay with it gives, but
>> did not want to mix things up, native web2py does it have any way out?
>>
>> Thanks people.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] web2py hosting services

2015-09-15 Thread António Ramos
webfaction !!
https://wiki.webfaction.com/wiki/InstallScripts

2015-09-15 16:48 GMT+01:00 Blutoh :

> Hi all,
>
> Most of the threads I found regarding Hosting Services seem to be very old.
> AFAIK, the only current hosting service is Pythonanywhere.
> I found this company, "Planet Host" (http://www.planethost.com/) but I
> don't get
> any response to my inquiries regarding web2py, so I am not sure of they
> still
> offer it.  I have found some services claim to support web2py, but really
> only
> pay it lip service, and can't give the necessary configuration or support.
>
> Are there any other hosting services out there I should know about?  I
> don't want
> to go thru many gyrations just to get web2py to work, I am looking for a
> service
> that is "web2py aware" out of the box and knows how to properly support it.
>
> Thanks,
> Blutoh
>
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] web2py SPA(single page application)

2015-09-15 Thread António Ramos
elm lang is very interesting youtubing right now...


2015-09-15 10:14 GMT+01:00 Michele Comitini :

> Richard is right, using Ractive.js allows the creation of SPA easily.
> Much more effective than angular due to a saner template design  that
> limits the number of new attibutes to learn.  And the DOM is faster to
> update by design. The only missing part is the AJAX communication that
> requires you to use something else such as jquery.
>
> Else I suggest elm see elm-lang.org.
>
>
>
> 2015-09-15 3:26 GMT+02:00 Richard Vézina :
>
>> Look on the side of Ractive.js, it is a simple smaller way to get SPA
>> into web2py without all the overhead that come from Angular.js (which is a
>> framework)
>>
>> Massimo has made an work and progress app to "eventually" replace the
>> welcome app (I quotted eventually because until know it was only
>> experiment, but I think Massimo's would like to pick-up Ractive.js and
>> integrate it as it is the case with jQuery for instance).
>>
>> The app I am talking about is available here :
>> https://github.com/mdipierro/w3
>>
>> I think it is a good start for using Ractive.js inside web2py and try to
>> implement a SPA style app with web2py relegated to the backend...
>>
>> :)
>>
>> Richard
>>
>> On Sun, Sep 13, 2015 at 9:34 PM, Márcio Almeida <
>> marciolauriano.alme...@gmail.com> wrote:
>>
>>> Hi, I'm trying to create a spa-like application to not reload it
>>> whenever you change page, I tried example of web2pyslices but
>>> only charges the index page, the other I did not know how to load (
>>> http://www.web2pyslices.com/slice/show/2030/creating-a-single-page-app-with-web2py
>>> ).
>>> Has anyone had any experience with this or know how to evolve the
>>> example of web2pyslices?
>>> Some solution in web2py?
>>> I think some will tell me about angularjs etc, okay with it gives, but
>>> did not want to mix things up, native web2py does it have any way out?
>>>
>>> Thanks people.
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py][OT] Workflow

2015-09-16 Thread António Ramos
I need a sample web2py app :)
How do i integrate it with dal records?
For example a simple expenses approval..
Em 16/09/2015 19:26, "Dave S"  escreveu:

>
>
> On Wednesday, September 16, 2015 at 4:01:19 AM UTC-7, Ramos wrote:
>>
>> My company and many others would buy a web workflow framework. for
>> example a Workflow as a service...
>>
>> We dont want blogs we want real enterprise tools.
>>
>
> What's missing from SpiffWorkflow?  The documentation looks fairly
> professional (at a quick glance).
> 
>
>
> Fysom is a finite state machine generator.  Workflow processes can be
> mapped to the transitions, I guess, and outputs to the states.  I'd have to
> think about how to set it up for meeting multiple requirements on the
> inputs; probably using substates to match the set of requirements; from the
> super state, that would look inputs casuing a transition to self until all
> inputs were present.  I haven't done that for workflow, but some device
> drivers had that sort of FSM within an FSM (device discovery, for instance).
> 
>
>
> On Tue, Sep 15, 2015 at 4:33 PM, Niphlod  wrote:
>>>

 [...]
 if you need general purpose unrelated to tasks, use SpiffWorkflow or
 fysom.



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

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


Re: [web2py] Re: web2py SPA(single page application)

2015-09-16 Thread António Ramos
Massimo, can you explain what it "chancing the triple delimiters" ?

i used web2py with vuejs without a problem...


for example i import my app.js  in my view to kick vuejs

(function ($, Vue) {

$(document).ready(function () {
Vue.config.delimiters = ['(%', '%)'];

new Vue({
  el: '#demo',
  data: {
   var1:'aa'

  },
  filters:{
  first:function(value,stop){
  return value.slice(0,stop);
  }

  },
  methods:
  {
selectFormula:function(form){

  },
log: function(arg) {
console.log(arg);
},

},
ready:function(){

}
   });
  });
})($, Vue);

2015-09-16 22:20 GMT+01:00 Massimo Di Pierro :

> I had problems with vue.js Like chancing the triple delimiters did not
> work for me.
>
>
> On Wednesday, 16 September 2015 09:37:06 UTC-5, Ramos wrote:
>>
>> My favourite is Vuejs
>> learn from here
>>
>> http://vuejs.org/guide/
>> https://laracasts.com/series/learning-vuejs
>> you can go very crazy with it
>>
>>
>> 2015-09-16 15:05 GMT+01:00 Márcio Almeida <
>> marciolauriano.alme...@gmail.com>:
>>
>>> Thank you, I will study it.
>>> If anyone has more information, please post.
>>>
>>> Em segunda-feira, 14 de setembro de 2015 22:14:53 UTC-3, Márcio Almeida
>>> escreveu:

 Hi, I'm trying to create a spa-like application to not reload it
 whenever you change page, I tried example of web2pyslices but
 only charges the index page, the other I did not know how to load (
 http://www.web2pyslices.com/slice/show/2030/creating-a-single-page-app-with-web2py
 ).
 Has anyone had any experience with this or know how to evolve the
 example of web2pyslices?
 Some solution in web2py?
 I think some will tell me about angularjs etc, okay with it gives, but
 did not want to mix things up, native web2py does it have any way out?

 Thanks people.

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

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


Re: [web2py] Re: web2py SPA(single page application)

2015-09-17 Thread António Ramos
I get it
you meant  "Changing"  right ?
this is the way Vue.config.delimiters = ['(%', '%)'];

2015-09-16 23:27 GMT+01:00 António Ramos <ramstei...@gmail.com>:

> Massimo, can you explain what it "chancing the triple delimiters" ?
>
> i used web2py with vuejs without a problem...
>
>
> for example i import my app.js  in my view to kick vuejs
>
> (function ($, Vue) {
>
> $(document).ready(function () {
> Vue.config.delimiters = ['(%', '%)'];
>
> new Vue({
>   el: '#demo',
>   data: {
>var1:'aa'
>
>   },
>   filters:{
>   first:function(value,stop){
>   return value.slice(0,stop);
>   }
>
>   },
>   methods:
>   {
> selectFormula:function(form){
>
>   },
> log: function(arg) {
> console.log(arg);
> },
>
> },
> ready:function(){
>
> }
>});
>   });
> })($, Vue);
>
> 2015-09-16 22:20 GMT+01:00 Massimo Di Pierro <massimo.dipie...@gmail.com>:
>
>> I had problems with vue.js Like chancing the triple delimiters did not
>> work for me.
>>
>>
>> On Wednesday, 16 September 2015 09:37:06 UTC-5, Ramos wrote:
>>>
>>> My favourite is Vuejs
>>> learn from here
>>>
>>> http://vuejs.org/guide/
>>> https://laracasts.com/series/learning-vuejs
>>> you can go very crazy with it
>>>
>>>
>>> 2015-09-16 15:05 GMT+01:00 Márcio Almeida <
>>> marciolauriano.alme...@gmail.com>:
>>>
>>>> Thank you, I will study it.
>>>> If anyone has more information, please post.
>>>>
>>>> Em segunda-feira, 14 de setembro de 2015 22:14:53 UTC-3, Márcio Almeida
>>>> escreveu:
>>>>>
>>>>> Hi, I'm trying to create a spa-like application to not reload it
>>>>> whenever you change page, I tried example of web2pyslices but
>>>>> only charges the index page, the other I did not know how to load (
>>>>> http://www.web2pyslices.com/slice/show/2030/creating-a-single-page-app-with-web2py
>>>>> ).
>>>>> Has anyone had any experience with this or know how to evolve the
>>>>> example of web2pyslices?
>>>>> Some solution in web2py?
>>>>> I think some will tell me about angularjs etc, okay with it gives, but
>>>>> did not want to mix things up, native web2py does it have any way out?
>>>>>
>>>>> Thanks people.
>>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: [web2py] Re: Self-referencing tables and queries

2015-09-17 Thread António Ramos
+1
*There's no need for an extension to have a supervisor, because the
supervisor is already stored in Person. !!!*

2015-09-17 11:10 GMT+01:00 Carla Raquel :

> *So what? You should future proof the app. Some day there might be
> extensions in India or something.*
>
> Actually, the extensions are internal to the company, either phone numbers
> or mobile numbers, so your scenario won't ever apply.
>
> *Do you mean the extensions of the persons he supervises?*
>
> That is what he already does, which is what I don't want it to do. I'll
> give an example,so that you can visualize it better:
>
> Supervisor X has two extensions: 5589,5590
> Supervisor X supervises two people: A and B
> A has two extensions: 4572,4573
> B has one extension: 4321
>
> My current query returns: 5589,5590,4572,4573,4321
> What I want it to returns: 5589,5590
>
> Conclusion: Just the Supervisor extensions
>
>
> quarta-feira, 16 de Setembro de 2015 às 18:15:53 UTC+1, Leonel Câmara
> escreveu:
>>
>> > I think in this case they won't be strings since I read the numbers
>> from a XML and they don't have the '+' character
>>
>> So what? You should future proof the app. Some day there might be
>> extensions in India or something.
>>
>> > Not all the supervisors.I want to get the extensions of a particular
>> supervisor
>>
>> Do you mean the extensions of the persons he supervises? If so:
>>
>> the_supervised = db(db.auth_user.Supervisor ==
>> ParticularSupervisor.id)._select(db.auth_user.id)
>> extensions_of_the_supervised =
>> db(db.Extension.Person.belongs(the_supervised)).select()
>>
>> This will give you the extensions of everyone that is supervised by this
>> person.
>>
>>
>> --
> 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: web2py SPA(single page application)

2015-09-17 Thread António Ramos
I think you wont have that problem after 1.0


Unsafe delimiters for HTML interpolation can now be configured separately:

Vue.config.unsafeDelimiters = ['{!!', '!!}']
Note in 1.0.0-alpha when you set Vue.config.delimiters, it will still
implicitly update the unsafe delimiters following the current rules, but in
1.0.0-beta and above setting delimiters will have no effect on
unsafeDelimiters.
...
Em 17/09/2015 19:18, "Massimo Di Pierro" <massimo.dipie...@gmail.com>
escreveu:

> In vue.js there are unsafe_delimiters
> and they change automatically when you set delimiters. So I chose
> delimiters to e '{%','%}' and it automatically changed unsafe_delimiters to
> '{{%','%}}' so it was conflicting with web2py delimiters {{.}}.
>
>
> On Thursday, 17 September 2015 03:25:43 UTC-5, Ramos wrote:
>>
>> I get it
>> you meant  "Changing"  right ?
>> this is the way Vue.config.delimiters = ['(%', '%)'];
>>
>> 2015-09-16 23:27 GMT+01:00 António Ramos <ramstei...@gmail.com>:
>>
>>> Massimo, can you explain what it "chancing the triple delimiters" ?
>>>
>>> i used web2py with vuejs without a problem...
>>>
>>>
>>> for example i import my app.js  in my view to kick vuejs
>>>
>>> (function ($, Vue) {
>>>
>>> $(document).ready(function () {
>>> Vue.config.delimiters = ['(%', '%)'];
>>>
>>> new Vue({
>>>   el: '#demo',
>>>   data: {
>>>var1:'aa'
>>>
>>>   },
>>>   filters:{
>>>   first:function(value,stop){
>>>   return value.slice(0,stop);
>>>   }
>>>
>>>   },
>>>   methods:
>>>   {
>>> selectFormula:function(form){
>>>
>>>   },
>>> log: function(arg) {
>>> console.log(arg);
>>> },
>>>
>>> },
>>> ready:function(){
>>>
>>> }
>>>});
>>>   });
>>> })($, Vue);
>>>
>>> 2015-09-16 22:20 GMT+01:00 Massimo Di Pierro <massimo.dipie...@gmail.com
>>> >:
>>>
>>>> I had problems with vue.js Like chancing the triple delimiters did not
>>>> work for me.
>>>>
>>>>
>>>> On Wednesday, 16 September 2015 09:37:06 UTC-5, Ramos wrote:
>>>>>
>>>>> My favourite is Vuejs
>>>>> learn from here
>>>>>
>>>>> http://vuejs.org/guide/
>>>>> https://laracasts.com/series/learning-vuejs
>>>>> you can go very crazy with it
>>>>>
>>>>>
>>>>> 2015-09-16 15:05 GMT+01:00 Márcio Almeida <
>>>>> marciolauriano.alme...@gmail.com>:
>>>>>
>>>>>> Thank you, I will study it.
>>>>>> If anyone has more information, please post.
>>>>>>
>>>>>> Em segunda-feira, 14 de setembro de 2015 22:14:53 UTC-3, Márcio
>>>>>> Almeida escreveu:
>>>>>>>
>>>>>>> Hi, I'm trying to create a spa-like application to not reload it
>>>>>>> whenever you change page, I tried example of web2pyslices but
>>>>>>> only charges the index page, the other I did not know how to load (
>>>>>>> http://www.web2pyslices.com/slice/show/2030/creating-a-single-page-app-with-web2py
>>>>>>> ).
>>>>>>> Has anyone had any experience with this or know how to evolve the
>>>>>>> example of web2pyslices?
>>>>>>> Some solution in web2py?
>>>>>>> I think some will tell me about angularjs etc, okay with it gives,
>>>>>>> but did not want to mix things up, native web2py does it have any way 
>>>>>>> out?
>>>>>>>
>>>>>>> Thanks people.
>>>>>>>
>>>>>> --
>>>>>> 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

Re: [web2py] Re: web2py SPA(single page application)

2015-09-17 Thread António Ramos
Im not saying better. I said favourite.
The docs are very good. Never gave ractive a chance because the docs were
not very appealing at first sight.
Only my opinion.
Em 17/09/2015 21:14, "JorgeH" <jorgeh...@gmail.com> escreveu:

> so, why is Vue better than Ractive?
>
> or viceversa...
>
> On Thursday, September 17, 2015 at 1:44:03 PM UTC-5, Ramos wrote:
>>
>> I think you wont have that problem after 1.0
>>
>> 
>> Unsafe delimiters for HTML interpolation can now be configured separately:
>>
>> Vue.config.unsafeDelimiters = ['{!!', '!!}']
>> Note in 1.0.0-alpha when you set Vue.config.delimiters, it will still
>> implicitly update the unsafe delimiters following the current rules, but in
>> 1.0.0-beta and above setting delimiters will have no effect on
>> unsafeDelimiters.
>> ...
>> Em 17/09/2015 19:18, "Massimo Di Pierro" <massimo@gmail.com>
>> escreveu:
>>
>>> In vue.js there are unsafe_delimiters
>>> and they change automatically when you set delimiters. So I chose
>>> delimiters to e '{%','%}' and it automatically changed unsafe_delimiters to
>>> '{{%','%}}' so it was conflicting with web2py delimiters {{.}}.
>>>
>>>
>>> On Thursday, 17 September 2015 03:25:43 UTC-5, Ramos wrote:
>>>>
>>>> I get it
>>>> you meant  "Changing"  right ?
>>>> this is the way Vue.config.delimiters = ['(%', '%)'];
>>>>
>>>> 2015-09-16 23:27 GMT+01:00 António Ramos <ramst...@gmail.com>:
>>>>
>>>>> Massimo, can you explain what it "chancing the triple delimiters" ?
>>>>>
>>>>> i used web2py with vuejs without a problem...
>>>>>
>>>>>
>>>>> for example i import my app.js  in my view to kick vuejs
>>>>>
>>>>> (function ($, Vue) {
>>>>>
>>>>> $(document).ready(function () {
>>>>> Vue.config.delimiters = ['(%', '%)'];
>>>>>
>>>>> new Vue({
>>>>>   el: '#demo',
>>>>>   data: {
>>>>>var1:'aa'
>>>>>
>>>>>   },
>>>>>   filters:{
>>>>>   first:function(value,stop){
>>>>>   return value.slice(0,stop);
>>>>>   }
>>>>>
>>>>>   },
>>>>>   methods:
>>>>>   {
>>>>> selectFormula:function(form){
>>>>>
>>>>>   },
>>>>> log: function(arg) {
>>>>> console.log(arg);
>>>>> },
>>>>>
>>>>> },
>>>>> ready:function(){
>>>>>
>>>>> }
>>>>>});
>>>>>   });
>>>>> })($, Vue);
>>>>>
>>>>> 2015-09-16 22:20 GMT+01:00 Massimo Di Pierro <massimo@gmail.com>:
>>>>>
>>>>>> I had problems with vue.js Like chancing the triple delimiters did
>>>>>> not work for me.
>>>>>>
>>>>>>
>>>>>> On Wednesday, 16 September 2015 09:37:06 UTC-5, Ramos wrote:
>>>>>>>
>>>>>>> My favourite is Vuejs
>>>>>>> learn from here
>>>>>>>
>>>>>>> http://vuejs.org/guide/
>>>>>>> https://laracasts.com/series/learning-vuejs
>>>>>>> you can go very crazy with it
>>>>>>>
>>>>>>>
>>>>>>> 2015-09-16 15:05 GMT+01:00 Márcio Almeida <marciolauri...@gmail.com>
>>>>>>> :
>>>>>>>
>>>>>>>> Thank you, I will study it.
>>>>>>>> If anyone has more information, please post.
>>>>>>>>
>>>>>>>> Em segunda-feira, 14 de setembro de 2015 22:14:53 UTC-3, Márcio
>>>>>>>> Almeida escreveu:
>>>>>>>>>
>>>>>>>>> Hi, I'm trying to create a spa-like application to not reload it
>>>>>>>>> whenever you change page, I tried example of web2pyslices but
>>>>>>>>> only charges the index page, the other I did not know how to load (
>>>>>>>>> http://www.web2pyslices.com/slice/show/2030/creating-a-single-page-app-with-web2py
>>>>>>>>> ).
>>>>>>>>> Has anyone had any experience with this 

[web2py] Off topic - A good talk

2015-09-21 Thread António Ramos
https://www.youtube.com/watch?v=__dDAD0Y_WU

some good messages under the hood

-- 
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 2.13.3 is OUT

2015-12-28 Thread António Ramos
can i do

   @auth.requires_jwt()

I would like to use web2py just as a rest api , auth included...

2015-12-27 7:09 GMT+00:00 Massimo Di Pierro :

> good catch! we will have to refactor that to support earlier versions of
> python.
>
>
> On Sunday, 27 December 2015 01:02:09 UTC-6, Lou C wrote:
>>
>> I am running version 2.13.4 on GAE which runs on python 2.7.5. The
>> problem arises when using the @auth.allows_jwt() decorator. The error I get
>> is AttributeError: 'module' object has no attribute 'compare_digest'.
>> Which is being called in :
>>
>> def verify_signature(self, body, signature, secret):
>> mauth = hmac.new(key=secret, msg=body, digestmod=self.digestmod)
>> return hmac.compare_digest(self.jwt_b64e(mauth.digest()),
>> signature)
>>
>> I believe this is because hmac.py uses compare_digest in version 2.7.7.
>> Anyway to use jwt on GAE ?
>>
>> On Friday, December 25, 2015 at 9:04:11 PM UTC-8, Massimo Di Pierro wrote:
>>>
>>> This is issue is now fixed in 2.13.4. :-)
>>>
>>> On Friday, 25 December 2015 22:37:54 UTC-6, Πέτρος Χατζηλάμπρος wrote:

 Mrry Christmas

 I found the following bug in version 2.13.3:

 I am using linux mint and I have a folder named web2py on the ~/Desktop
 I was using to run web2py by opening terminal and giving the command
 "python ~/Desktop/web2py/web2py.py -a "tsouras" -i 0.0.0.0".
 After the update to version 2.13.3 the following error appears
 Traceback (most recent call last):
   File "/home/tsouras/Desktop/web2py/web2py.py", line 6, in 
 import gluon.widget
   File "/home/tsouras/Desktop/web2py/gluon/widget.py", line 26, in
 
 import gluon.main as main
   File "/home/tsouras/Desktop/web2py/gluon/main.py", line 125, in
 
 raise RuntimeError("Cannot determine web2py version")
 RuntimeError: Cannot determine web2py version

 So, I did some debugging and I found out
 that global_settings.gluon_parent is "/home/tsouras" instead of being
 "/home/tsouras/Desktop/web2py"
 I overcome this problem by opening terminal and giving command "cd
 ~Desktop/web2py" before giving the command "python
 ~/Desktop/web2py/web2py.py -a "tsouras" -i 0.0.0.0"

 I did not have this problem using the previous version of web2py

 On Thursday, December 24, 2015 at 5:21:42 PM UTC+2, Massimo Di Pierro
 wrote:
>
> web2py 2.13.3 is out. MERRY CHRISTMAS EVERYBODY!!!
>
> It contains some bug fixes for bugs introduced in 2.13.1-2 and most
> importantly it contains experimental support for JWT. Here is how it 
> works:
>
> 1) instantiate auth with
>
> auth = Auth(db, jwt = {'secret_key':'secret'})
>
> where 'secret' is your own secret string.
>
> 2) Secorate functions that require login but should accept the
> JWT token credentials:
>
> @auth.allows_jwt()
> @auth.requires_login()
> def myapi(): return 'hello %s' % auth.user.email
>
> Notice jwt is allowed but not required. if user is logged in,
> myapi is accessible.
>
> 3) Use it!
> Now API users can obtain a token with
>
> http://.../app/default/user/jwt?username=...=
>
> (returns json object with a token attribute)
> API users can refresh an existing token with
>
> http://.../app/default/user/jwt?token=...
>
> they can authenticate themselves when calling http:/.../myapi
> by injecting a header
>
> Authorization: Bearer 
>
> Any additional attributes in the jwt argument of Auth() below:
>
>auth = Auth(db, jwt = {...})
>
> are passed to the constructor of class AuthJWT. Look there for
> documentation.
>
> Thanks Niphlod again for implementing this.
> Please help us check it so we will declare it stable in the next
> release.
>
> Massimo
>
>
> --
> 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, 

Re: [web2py] web2py 2.13.3 is OUT

2015-12-28 Thread António Ramos
Vuejs/web components
http://vuejs.org/guide/application.html
+semantic ui +some build tools like browserify to build just a single
Js  file out of many.
However I need a persistence/auth api.


No dia segunda-feira, 28 de dezembro de 2015, Dave S 
escreveu:

> On Monday, December 28, 2015 at 11:05:04 AM UTC-8, Ramos wrote:
>>
>> can i do
>>
>>@auth.requires_jwt()
>>
>> I would like to use web2py just as a rest api , auth included...
>>
>
> What's your environment?
>
> /dps
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] web2py 2.13.3 is OUT

2015-12-29 Thread António Ramos
Just a windows machine... so far. its not a finished product yet

2015-12-29 3:56 GMT+00:00 Dave S :

>
>
> On Monday, December 28, 2015 at 3:45:23 PM UTC-8, Ramos wrote:
>>
>> Vuejs/web components
>> http://vuejs.org/guide/application.html
>> +semantic ui +some build tools like browserify to build just a single
>> Js  file out of many.
>> However I need a persistence/auth api.
>>
>>
>
> Are you running on GAE, PythonAnywhere, a VM type of hosting, or on a
> physical machine?
> Which OS are you using?
>
> /dps
>
>
>>
>> No dia segunda-feira, 28 de dezembro de 2015, Dave S 
>> escreveu:
>>
>>> On Monday, December 28, 2015 at 11:05:04 AM UTC-8, Ramos wrote:

 can i do

@auth.requires_jwt()

 I would like to use web2py just as a rest api , auth included...

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

-- 
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] Querying data using admin

2016-06-09 Thread António Ramos
hello
how can i, via admin query a table using in the input box more than 1 field
to query?

i tried
db.amostras.n==203027 & db.amostras.estante1=="_E_000"  - >error
db.amostras.n==203027 and db.amostras.estante1=="_E_000" -> no error but
seems to search only the second field (db.amostras.estante1=="_E_000)

how can i query based on 2 fields?

Regards
António

-- 
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: Querying data using admin

2016-06-09 Thread António Ramos
Yes it works now.

Too bad that i cannot only return some of the columns. It would be perfect
because i have many columns and i have to scroll to the right a lot.

2016-06-09 14:55 GMT+01:00 isi_jca :

> Hello!!!
>
> Try using Parenthesis, for example:
>
> (db.tventa.id >= 3)  &  (db.tventa.id <= 7)
>
>
> Result Set
> tventa.id
> 
> tventa.fecha
> 
> tventa.vendedor
> 
> tventa.monto
> 
> 3  2016-05-04
> Pedro 900.00
> 4  2016-05-05
> Andrés 1050.00
> 5  2016-06-08
> Pepe 123.31
> 6  2016-06-09
> Pepe 52.36
> 7  2016-06-10
> Maria 12.36
> Regards.
>
>
> El jueves, 9 de junio de 2016, 6:29:39 (UTC-3), Ramos escribió:
>>
>> hello
>> how can i, via admin query a table using in the input box more than 1
>> field to query?
>>
>> i tried
>> db.amostras.n==203027 & db.amostras.estante1=="_E_000"  - >error
>> db.amostras.n==203027 and db.amostras.estante1=="_E_000" -> no error but
>> seems to search only the second field (db.amostras.estante1=="_E_000)
>>
>> how can i query based on 2 fields?
>>
>> Regards
>> António
>>
>> --
> 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: Querying data using admin

2016-06-09 Thread António Ramos
Oops
Thank you Anthony

António
2016-06-09 14:39 GMT+01:00 Anthony :

> (db.amostras.n==203027) & (db.amostras.estante1=="_E_000")

-- 
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] Off Topic - no-more-mvc-frameworks

2016-05-29 Thread António Ramos
https://www.infoq.com/articles/no-more-mvc-frameworks

-- 
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: web2pyslices again

2016-01-14 Thread António Ramos
if you dont like web2pyslices wait until you see the appliances..

http://www.web2py.com/appliances
many dont work...

2016-01-14 8:13 GMT+00:00 Mirek Zvolský :

> Yes. Anthony.
> Today the INSTALL (from web2py admin - install application) works.
> So I don't know what to think.
> Maybe somebody has made some repair?
> Maybe there is some caching? If I change "Short description" (example) - I
> don't see any change in the text too.
>
> Criticism .. you are true of course.
> However I am realy tired from Web2pyslices.
> I want make something for the community too (at this time this plugin).
> But I don't want faith many many hours with web2pyslices interface.
>
> --
> 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: What are the platforms for free web hosting of web2py apps?

2016-02-26 Thread António Ramos
webfaction is very good

2016-02-26 15:59 GMT+00:00 Massimo Di Pierro :

> I agree:
>
> pythonanywhere.com (free with limitation)
> google app engine (also free with limitations)
> digital ocean is $5/month for a full VM
>
>
> On Friday, 26 February 2016 09:03:30 UTC-6, Manches spainspots wrote:
>>
>> It depends on your needs.  I am new to web2py, so I just needed a small
>> place to learn.  I found that at pythonanywhere.com and a decent free
>> tutorial at Udemy.
>> Good Luck!
>>
>> On Saturday, February 20, 2016 at 10:38:46 PM UTC-8, Rgb Aston wrote:
>>>
>>> Which one's the best to go for?
>>>
>> --
> 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: Any angular templates?

2016-01-25 Thread António Ramos
check this

https://github.com/amberdoctor/angularjs_and_web2py

Also consider angular alternatives like ractive or  vuejs .
Check also Json Web Tokens in we2bpy latest version if you dont want to mix
the 2.

2016-01-23 6:31 GMT+00:00 Seraaj Muneer :

> You could easily use the two via rest. So web2py becomes the rest backend
> ,
> freeing you to use not just angular but any of the myriad frontend
> javascript frameworks out there.
>
>
> On Saturday, 23 January 2016 04:57:07 UTC, LoveWeb2py wrote:
>>
>> Has anyone created apps with web2py and angular? I want to use angular's
>> front end and web2py on the backend.
>>
>> Hoping someone has already created a template app.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] How good a combo of MongoDB and web2py as a restful backend for a vast mobile application?

2016-03-14 Thread António Ramos
for something like socket.io you have tornado
https://www.youtube.com/watch?v=MUWy-NSrvNQ

for mongodb, i suggest using postgresql . It has also support for json
objects and is faster than even mongodb, they say...
http://www.enterprisedb.com/nosql-for-enterprise

But, i´m just a curious guy with no relevant background in any of these
matters...

Regards
António

2016-03-13 19:57 GMT+00:00 arihant daga :

> Hi all,
>
> I am trying to build a mobile application communicating to server using
> rest services.
> I am trying to build the backend with web2py. But i am feeling quiet
> doubtful since i am not getting much resources on web apart from the
> book.I am a little doubtful weather i should go for MongDb with web2py or
> not??
> Is MongoDb Support stable in web2py? Is Node.Js or other alternatives
> would be better than web2py with mongoDb.
> Does we2py provides a good auth solution for mobile application rather
> than basic auth? If yes what is it?
> Can i use socket.io later with web2py ??
>
>
>
> --
> 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] No form.errors in custom user form ?

2016-03-15 Thread António Ramos
Hello i have this custom user form. When i enter a wrong password i
 form.errors  is empty..
Any help ?

{{extend 'layout.html'}}

{{=form.custom.begin}}

  
Registo

{{if request.args(0)!='login':}}

  
  
 
  
  

  
  
 
  
  
{{pass}}

  
  
 
  
  
  
  
  

  
  
  {{if request.args(0)!='login':}}
  
  
  

  
  
  {{pass}}
Entrar
Criar conta
Perdi a password
Sair
  

  
  Lembrar

  

  

Submitted Fields:
{{=BEAUTIFY(request.vars)}}
Accepted Fields:
{{=BEAUTIFY(form.vars)}}
Errors:
{{=BEAUTIFY(form.errors)}}
{{=form.custom.end}}

-- 
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: How do I take picture using camera and save it in db?

2016-03-11 Thread António Ramos
Try the filepicker cloud service in your views
Em 11/03/2016 19:01, "Dave S"  escreveu:

> On Friday, March 11, 2016 at 9:52:20 AM UTC-8, RAGHIB R wrote:
>>
>> What syntax do you use for the same?
>>
>>
> For a camera on the server, you use an external program that saves the
> picture to the file, and in a controller or scheduler task simply do a
> normal DB insert, which might  either be just the filename (and you read
> the file later when asked for it) or a blob (if you don't mind big objects
> in your DB).
>
> For a camera on a client, you have the user save the file somewhere and
> then use an upload field.
>
> /dps
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


[web2py] Functional programming in web2py...

2016-03-19 Thread António Ramos
Hello i´m a confused guy so bare with me..

I recently discovered elixir language and its so much different mainly
because its a functional programming style.

One of the things i like is the pipe operator.

See here info about it and a way to do it in ruby.

http://www.akitaonrails.com/2016/02/18/elixir-pipe-operator-for-ruby-chainable-methods

Do you find the concept useful or not?

i´d like to learn from your experience...


Regards
António

-- 
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: No form.errors in custom user form ?

2016-03-15 Thread António Ramos
Guess i have to use =form.custom.widget.fieldname


2016-03-15 18:03 GMT+00:00 António Ramos <ramstei...@gmail.com>:

> Hello i have this custom user form. When i enter a wrong password i
>  form.errors  is empty..
> Any help ?
>
> {{extend 'layout.html'}}
>
> {{=form.custom.begin}}
> 
>   
> Registo
> 
> {{if request.args(0)!='login':}}
> 
>   
>   
>   name="first_name" placeholder="first name">
>   
>   
> 
>   
>   
>   name="last_name" placeholder="last name">
>   
>   
> {{pass}}
> 
>   
>   
>   name="email" placeholder="Enter email">
>   
>   
>   
>   
>   
>  id="auth_user_password" name="password" placeholder="Enter password">
>   
>   
>   {{if request.args(0)!='login':}}
>   
>   
>   
>  id="auth_user_password_two" name="password" placeholder="Confirm password">
>   
>   
>   {{pass}}
> Entrar
> Criar conta
> Perdi a password
> Sair
>   
> 
>id="auth_user_remember_me">
>   Lembrar
> 
>   
> 
>   
> 
> Submitted Fields:
> {{=BEAUTIFY(request.vars)}}
> Accepted Fields:
> {{=BEAUTIFY(form.vars)}}
> Errors:
> {{=BEAUTIFY(form.errors)}}
> {{=form.custom.end}}
>

-- 
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: for those of us who do not understand ...

2016-03-11 Thread António Ramos
I´d like to know why Massimo took his time to create stupid.css


Should we go Stupid and why?



2016-03-11 15:53 GMT+00:00 Ron Chatterjee :

> This is by far the best dashboard I ever seen. Massimo, if there is a best
> teacher award in US, I will vote for you to get that. Excellent work!
>
>
>
> On Thursday, March 10, 2016 at 9:45:08 PM UTC-5, Dave S wrote:
>>
>>
>>
>> On Tuesday, March 8, 2016 at 4:01:00 PM UTC-8, Dave S wrote:
>>>
>>>
>>>
>>> On Tuesday, March 8, 2016 at 1:04:50 PM UTC-8, Massimo Di Pierro wrote:

 I would like to buy a .ham.burger
 http://mdipierro.github.io/stupid.css/themes/hamburger.html

>>>
>>> Oh, my!
>>>
>>
>> I like the card divs you added (as seen in the stupid.css-welcome-app
>> sample), but a btn-block doesn't wrap in those. That may not be a big deal,
>> but I did have a chance to observe it before moving part of the text into
>> the enclosing H3.
>>
>> /dps
>>
>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] web2py pygal graph

2016-03-11 Thread António Ramos
Forget that view associated with graph function.

you need a different view and controller.
For example controllerA and viewA

def controllerA():

return dict(your_vars_here...)

viewA.html
here should paste the content of your previous view.
This way you will have the graph and
 MY FIRST GRAPH 

Regards
António



2016-03-10 16:01 GMT+00:00 :

> Hi Guys,
>
> Trying to draw some graphs using pygal and below link:
>
> http://www.web2pyslices.com/slice/show/1634/beauty-graphics-and-charts-with-pygal
>
> It works fine, but my view display only graph, without anything else
> included in the view e.g. headers, styling etc.
>
> Controller:
>
> def graph():
> response.view = 'default/graph.html'
> response.headers['Content-Type']='image/svg+xml'
> dateline = pygal.DateLine(x_label_rotation=25)
> dateline.x_labels = [
> datetime.date(2013, 1, 1),
> datetime.date(2013, 7, 1),
> datetime.date(2014, 1, 1),
> datetime.date(2014, 7, 1),
> datetime.date(2015, 1, 1),
> datetime.date(2015, 7, 1)
> ]
>
>
> dateline.add("Serie", [
> (datetime.date(2013, 1, 2), 213),
> (datetime.date(2013, 8, 2), 281),
> (datetime.date(2014, 12, 7), 198),
> (datetime.date(2015, 3, 21), 120)
> ])
>
> return dateline.render()
>
>
> view:
>
> {{extend 'layout.html'}}
>
>
> MY FIRST GRAPH
>
>
> http://localhost/project/default/graph.svg; type="image/svg+
> xml" />
>
>
> How can i disply my original view containing styles from layout.html,
> header "MY FIRST GRAPH" and the graph itself?
>
> 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.
>

-- 
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] new Starter app (alternative to Welcome app)

2016-03-23 Thread António Ramos
2.12.13

2016-03-23 17:15 GMT+00:00 Michael Beller <mjbel...@gmail.com>:

> That may be a problem with an earlier version of web2py.  I'm testing now
> on trunk, i.e., the master branch of web2py.  I noticed this earlier but
> haven't been able to see what's changed in master vs. previous versions.
> Anybody know?
>
> What version of web2py are you using?
>
> I should probably move Starter to the stable release.
>
> On Wednesday, March 23, 2016 at 1:08:10 PM UTC-4, Ramos wrote:
>>
>> error in login/register
>> [image: Imagem inline 1]
>>
>> 2016-03-23 17:07 GMT+00:00 António Ramos <ramst...@gmail.com>:
>>
>>> i cannot log in or register...
>>>
>>> 2016-03-23 12:13 GMT+00:00 Michael Beller <mjbe...@gmail.com>:
>>>
>>>> I just added the appconfig.ini to the repo since that will cause
>>>> confusion.  It contained the item for host_names supported by the current
>>>> web2py in trunk.
>>>>
>>>> auth = Auth(db, host_names=myconf.get('host.name'))
>>>>
>>>> Since I'm not sure what that is for, I just changed it back to:
>>>>
>>>> auth = Auth(db)
>>>>
>>>> in /models/db1.py
>>>>
>>>> Update your appconfig.ini to include the host_names entry (the
>>>> appconfig.ini in the repo on github contains the entry)
>>>> OR
>>>> Remove the host_names parameter from the call to Auth on line 58
>>>> in /models/db1.py
>>>>
>>>> That should get your local copy working (and eliminate the confusion
>>>> for future downloads or clones)
>>>>
>>>> On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>>>>>
>>>>> I already copied appconfig.ini to private
>>>>>
>>>>> but next error...
>>>>>
>>>>> [image: Imagem inline 1]
>>>>> then i changed auth above to just
>>>>> auth=auth(db)
>>>>>
>>>>> and now i could open the app but when i go to login or sign up i get
>>>>> another error
>>>>>
>>>>> [image: Imagem inline 2]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 2016-03-23 11:41 GMT+00:00 Massimiliano <mbel...@gmail.com>:
>>>>>
>>>>>> Just copy
>>>>>>
>>>>>> appconfic.ini from welcome/private to starter/private
>>>>>>
>>>>>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>>>>>>>
>>>>>>> Nice but i get an error installing it as "starter" application
>>>>>>> any help ?
>>>>>>>
>>>>>>> [image: Imagem inline 1]
>>>>>>>
>>>>>>> 2016-03-23 9:40 GMT+00:00 Massimiliano <mbel...@gmail.com>:
>>>>>>>
>>>>>>>> Very very nice.
>>>>>>>>
>>>>>>>> Thank you for sharing
>>>>>>>>
>>>>>>>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller <mjbe...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I created a new 'starter' app for the types of data and process
>>>>>>>>> management apps I tend to build.
>>>>>>>>>
>>>>>>>>> I used https://almsaeedstudio.com/preview as the template and I'm
>>>>>>>>> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>>>>>>>>>
>>>>>>>>> I'd welcome any feedback but also wanted to share the code at
>>>>>>>>> https://github.com/mjbeller/web2py-starter for anybody that may
>>>>>>>>> want to explore.
>>>>>>>>>
>>>>>>>>> I started with the goal to create a new web2py app without using
>>>>>>>>> the Welcome app to help me learn a little more about web2py.  I found
>>>>>>>>> myself slowly adding more and more code (primarily CSS and JS) from 
>>>>>>>>> the
>>>>>>>>> Welcome app to support some features such as Smartgrids.  I'd like to
>>>>>>>>> evolve Starter to support the upcoming form.py and grid.py that the 
>>>>>>>>> core
>>>>>>>>

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread António Ramos
error in login/register
[image: Imagem inline 1]

2016-03-23 17:07 GMT+00:00 António Ramos <ramstei...@gmail.com>:

> i cannot log in or register...
>
> 2016-03-23 12:13 GMT+00:00 Michael Beller <mjbel...@gmail.com>:
>
>> I just added the appconfig.ini to the repo since that will cause
>> confusion.  It contained the item for host_names supported by the current
>> web2py in trunk.
>>
>> auth = Auth(db, host_names=myconf.get('host.name'))
>>
>> Since I'm not sure what that is for, I just changed it back to:
>>
>> auth = Auth(db)
>>
>> in /models/db1.py
>>
>> Update your appconfig.ini to include the host_names entry (the
>> appconfig.ini in the repo on github contains the entry)
>> OR
>> Remove the host_names parameter from the call to Auth on line 58
>> in /models/db1.py
>>
>> That should get your local copy working (and eliminate the confusion for
>> future downloads or clones)
>>
>> On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>>>
>>> I already copied appconfig.ini to private
>>>
>>> but next error...
>>>
>>> [image: Imagem inline 1]
>>> then i changed auth above to just
>>> auth=auth(db)
>>>
>>> and now i could open the app but when i go to login or sign up i get
>>> another error
>>>
>>> [image: Imagem inline 2]
>>>
>>>
>>>
>>>
>>> 2016-03-23 11:41 GMT+00:00 Massimiliano <mbel...@gmail.com>:
>>>
>>>> Just copy
>>>>
>>>> appconfic.ini from welcome/private to starter/private
>>>>
>>>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>>>>>
>>>>> Nice but i get an error installing it as "starter" application
>>>>> any help ?
>>>>>
>>>>> [image: Imagem inline 1]
>>>>>
>>>>> 2016-03-23 9:40 GMT+00:00 Massimiliano <mbel...@gmail.com>:
>>>>>
>>>>>> Very very nice.
>>>>>>
>>>>>> Thank you for sharing
>>>>>>
>>>>>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller <mjbe...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> I created a new 'starter' app for the types of data and process
>>>>>>> management apps I tend to build.
>>>>>>>
>>>>>>> I used https://almsaeedstudio.com/preview as the template and I'm
>>>>>>> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>>>>>>>
>>>>>>> I'd welcome any feedback but also wanted to share the code at
>>>>>>> https://github.com/mjbeller/web2py-starter for anybody that may
>>>>>>> want to explore.
>>>>>>>
>>>>>>> I started with the goal to create a new web2py app without using the
>>>>>>> Welcome app to help me learn a little more about web2py.  I found myself
>>>>>>> slowly adding more and more code (primarily CSS and JS) from the Welcome
>>>>>>> app to support some features such as Smartgrids.  I'd like to evolve
>>>>>>> Starter to support the upcoming form.py and grid.py that the core team 
>>>>>>> is
>>>>>>> evaluating and developing.
>>>>>>>
>>>>>>> --
>>>>>>> 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.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Massimiliano
>>>>>>
>>>>>> --
>>>>>> Resources:
>>>>>> - http://web2py.com
>>>>>> - http://web2py.com/book (Documentation)
>&g

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread António Ramos
i cannot log in or register...

2016-03-23 12:13 GMT+00:00 Michael Beller :

> I just added the appconfig.ini to the repo since that will cause
> confusion.  It contained the item for host_names supported by the current
> web2py in trunk.
>
> auth = Auth(db, host_names=myconf.get('host.name'))
>
> Since I'm not sure what that is for, I just changed it back to:
>
> auth = Auth(db)
>
> in /models/db1.py
>
> Update your appconfig.ini to include the host_names entry (the
> appconfig.ini in the repo on github contains the entry)
> OR
> Remove the host_names parameter from the call to Auth on line 58
> in /models/db1.py
>
> That should get your local copy working (and eliminate the confusion for
> future downloads or clones)
>
> On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>>
>> I already copied appconfig.ini to private
>>
>> but next error...
>>
>> [image: Imagem inline 1]
>> then i changed auth above to just
>> auth=auth(db)
>>
>> and now i could open the app but when i go to login or sign up i get
>> another error
>>
>> [image: Imagem inline 2]
>>
>>
>>
>>
>> 2016-03-23 11:41 GMT+00:00 Massimiliano :
>>
>>> Just copy
>>>
>>> appconfic.ini from welcome/private to starter/private
>>>
>>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:

 Nice but i get an error installing it as "starter" application
 any help ?

 [image: Imagem inline 1]

 2016-03-23 9:40 GMT+00:00 Massimiliano :

> Very very nice.
>
> Thank you for sharing
>
> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller 
> wrote:
>
>> I created a new 'starter' app for the types of data and process
>> management apps I tend to build.
>>
>> I used https://almsaeedstudio.com/preview as the template and I'm
>> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>>
>> I'd welcome any feedback but also wanted to share the code at
>> https://github.com/mjbeller/web2py-starter for anybody that may want
>> to explore.
>>
>> I started with the goal to create a new web2py app without using the
>> Welcome app to help me learn a little more about web2py.  I found myself
>> slowly adding more and more code (primarily CSS and JS) from the Welcome
>> app to support some features such as Smartgrids.  I'd like to evolve
>> Starter to support the upcoming form.py and grid.py that the core team is
>> evaluating and developing.
>>
>> --
>> 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.
>>
>
>
>
> --
> Massimiliano
>
> --
> 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.

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-23 Thread António Ramos
I already copied appconfig.ini to private

but next error...

[image: Imagem inline 1]
then i changed auth above to just
auth=auth(db)

and now i could open the app but when i go to login or sign up i get
another error

[image: Imagem inline 2]




2016-03-23 11:41 GMT+00:00 Massimiliano :

> Just copy
>
> appconfic.ini from welcome/private to starter/private
>
> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>>
>> Nice but i get an error installing it as "starter" application
>> any help ?
>>
>> [image: Imagem inline 1]
>>
>> 2016-03-23 9:40 GMT+00:00 Massimiliano :
>>
>>> Very very nice.
>>>
>>> Thank you for sharing
>>>
>>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller 
>>> wrote:
>>>
 I created a new 'starter' app for the types of data and process
 management apps I tend to build.

 I used https://almsaeedstudio.com/preview as the template and I'm
 hosting a preview at https://mjbeller.pythonanywhere.com/starter.

 I'd welcome any feedback but also wanted to share the code at
 https://github.com/mjbeller/web2py-starter for anybody that may want
 to explore.

 I started with the goal to create a new web2py app without using the
 Welcome app to help me learn a little more about web2py.  I found myself
 slowly adding more and more code (primarily CSS and JS) from the Welcome
 app to support some features such as Smartgrids.  I'd like to evolve
 Starter to support the upcoming form.py and grid.py that the core team is
 evaluating and developing.

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

>>>
>>>
>>>
>>> --
>>> Massimiliano
>>>
>>> --
>>> 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] new Starter app (alternative to Welcome app)

2016-03-25 Thread António Ramos
This starter is sooo cool.
Its was time we had something like this.



2016-03-24 19:51 GMT+00:00 Ron Chatterjee :

> Its all good. Just asked.
>
>
> On Thursday, March 24, 2016 at 3:33:00 PM UTC-4, Michael Beller wrote:
>>
>> No Avatar field yet!  It's hardcoded in the template.  It should be easy
>> to add a custom field to the auth_user table following these instructions:
>>
>> http://web2py.com/books/default/chapter/29/09/access-control?search=auth_user#Customizing-Auth
>>
>> Then you can upload an avatar using the user profile page.
>>
>> I haven't done this with images but it should be straight forward (it's
>> on my todo list!)
>>
>> You can also designate a dedicated folder for the avatar uploads so
>> they're not commingled with other upload files ...
>>
>> http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=upload#SQLFORM-and-uploads
>>
>> On Thursday, March 24, 2016 at 3:03:41 PM UTC-4, Ron Chatterjee wrote:
>>>
>>> I am sorry, I was having some problem downloading the latest version so
>>> everything is good. Quick question Michael, how does someone change the
>>> profile picture? There is a avatar field?
>>>
>>> On Thursday, March 24, 2016 at 11:56:27 AM UTC-4, Michael Beller wrote:

 The appconfig in 2.13 has a problem with strings separated by comma's
 in the appconfig.ini file.  Starter app uses 2.14.1

 You can either install 2.14.1 or just change ...

 line 34 in initialize.py:
 for group in myconf.get('admin_user.auth_groups'):

 could replace with
 for group in ['Admin', 'Customer Service', 'Operations']:

 or just change the function to create the Admin group which is all
 that's needed.



 On Thu, Mar 24, 2016 at 11:20 AM, Ron Chatterjee 
 wrote:

> Not sure its ready to be posted. I just downloaded the app and I don't
> see any initialization. My experience...it seems have some issues still
> (see the attached pic) . When I tried to register, I get this error:
>
>
> Traceback *(*most recent call last
> *):   *File "…\web2py\gluon\restricted.py"*, *line 227*, in *
> restricted
> *exec *ccode *in *environment
>   File" …applications/starter/controllers/default.py"
> *,
> *line 91*, in <*module
> *>   *File "…web2py\gluon\globals.py"*, *line 412
> *, in  self.*_caller *= lambda *f*: *f
> *()   *File …/starter/controllers/default.py"
> *,
> *line 70*, in *user
> *return *dict*(*form*=*auth
> *())   *File "…web2py\gluon\tools.py"*, *line 1923*, in *__call__
> *return *getattr*(self, *args*[*0
> *])()   *File "…\tools.py"*, *line 3375*, in *register
> *self.*login_user*(*user
> *)   *File "…web2py\gluon\tools.py"*, *line 2630*, in *login_user
> user *= *Row*(*user
> *)   *File "…\helpers\classes.py"*, *line 18*, in *__init__
> *return self.*__dict__*.*__init__*(**args*, ***kwargs
> *) *TypeError*: *'NoneType' object *is not *iterable
>
> Using 2.13.4 (which has a flash bar rash that just don't go away).
>
>
>
> On Thursday, March 24, 2016 at 10:38:35 AM UTC-4, Michael Beller wrote:
>>
>> I commonly create a user (usually my email) and an Admin group and
>> then add myself to the Admin group.  I have logic in the Starter app 
>> based
>> on the Admin group.  I usually have other groups such as Operations and
>> Customer Service (I tend to build enterprise 'line of business' apps).
>> Since I frequently clean out the database during initial development, I
>> just created an initialization function that automatically adds an 
>> initial
>> set of test users, groups, and memberships so I don't have to do it
>> manually,   The Initialization function also calls a function that
>> automatically populates tables with test data (using the Populate 
>> function)
>> that is helpful for quick demos during prototyping and user demos.  You 
>> can
>> modify the routines to meet your needs - it's just something I always end
>> up creating so I put it in my scaffold app.
>>
>> On Thu, Mar 24, 2016 at 9:13 AM,  wrote:
>>
>>> This may be little preliminary but what you mean by "Admin user and
>>> auth_groups" setup and how? I don't recall anything to set up with the
>>> welcome app. It worked the first time straight out of the box.
>>>
>>>
>>> On Thursday, March 24, 2016 at 8:56:22 AM UTC-4, Ron Chatterjee
>>> wrote:

 I am looking at this link:

 https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html.
 Is that widget/plugin that comes with that bootstrap? 

[web2py] Postgres Notify ..!?

2016-03-25 Thread António Ramos
http://bjorngylling.com/2011-04-13/postgres-listen-notify-with-node-js.html

hi , could postgres NOTIFY be better/simpler than having to install tornado
to have socket message to my app?


Regards
António

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


Re: [web2py] web2py Job and Recruitment site

2016-03-27 Thread António Ramos
+1 if web2py inside!! ( you forgot to tell)

2016-03-26 10:58 GMT+00:00 Francisco Tomé Costa :

> Hi,
> At https://www.emprego.pt we've developed a job posting site, where
> candidates can create their professional profile (like LinkedIn)
> https://www.emprego.pt/apresentacao and companies have a complete
> backoffice solution for managing recuitment
> https://www.emprego.pt/recrutamento
>
> The website has only been launched in Portugal and has already more than
> 65000 members and 3400 companies. We also have a newsletter and
> notification system that sends more than 200k emails per week.
>
> We are now looking for partners interested in scaling the business into
> others locations
>
> --
> 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] new Starter app (alternative to Welcome app)

2016-03-23 Thread António Ramos
Nice but i get an error installing it as "starter" application
any help ?

[image: Imagem inline 1]

2016-03-23 9:40 GMT+00:00 Massimiliano :

> Very very nice.
>
> Thank you for sharing
>
> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller 
> wrote:
>
>> I created a new 'starter' app for the types of data and process
>> management apps I tend to build.
>>
>> I used https://almsaeedstudio.com/preview as the template and I'm
>> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>>
>> I'd welcome any feedback but also wanted to share the code at
>> https://github.com/mjbeller/web2py-starter for anybody that may want to
>> explore.
>>
>> I started with the goal to create a new web2py app without using the
>> Welcome app to help me learn a little more about web2py.  I found myself
>> slowly adding more and more code (primarily CSS and JS) from the Welcome
>> app to support some features such as Smartgrids.  I'd like to evolve
>> Starter to support the upcoming form.py and grid.py that the core team is
>> evaluating and developing.
>>
>> --
>> 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.
>>
>
>
>
> --
> Massimiliano
>
> --
> 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: OFF Topic - Cycle.js

2016-04-03 Thread António Ramos
I bought this course and it looks amazing..

https://pragmaticstudio.com/elm

Now my head is sooo confused.

2016-04-04 0:03 GMT+01:00 Leonel Câmara :

> I think elm looks pretty good actually. I'm wait and see on it because I
> have some resistance to learning yet another language.
>
> --
> 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: OFF Topic - Cycle.js

2016-04-03 Thread António Ramos
There goes react. i hate it by the way..

have you also tried elm???
Its also a functional reactive programing language
http://elm-lang.org/examples


2016-04-02 18:45 GMT+01:00 Massimo Di Pierro :

> I like it a lot better than React. I still prefer ractive.js and vue.js
>
>
> On Wednesday, 30 March 2016 06:43:53 UTC-5, Ramos wrote:
>>
>> Can i have some opinions on this new thing?
>>
>> http://cycle.js.org/
>>
>> thank 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.
>

-- 
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] OFF Topic - Cycle.js

2016-03-30 Thread António Ramos
Can i have some opinions on this new thing?

http://cycle.js.org/

thank 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] 'Table' object has no attribute 'edit'

2016-05-13 Thread António Ramos
Hi all
I just added
editable=True to a sqlform.grid

but i get the error

'Table' object has no attribute 'edit'

when i press the edit button


Any help ?


Thank you

António

-- 
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: 'Table' object has no attribute 'edit'

2016-05-13 Thread António Ramos
The button "Edit" appears in the table but pressing it gives me that error.

2016-05-13 16:18 GMT+01:00 António Ramos <ramstei...@gmail.com>:

> i had editable=False and got that error when changing to True
>
> [image: Imagem inline 1]
>
>
> 2016-05-13 16:02 GMT+01:00 Anthony <abasta...@gmail.com>:
>
>> More code...
>>
>>
>> On Friday, May 13, 2016 at 10:21:53 AM UTC-4, Ramos wrote:
>>>
>>> Hi all
>>> I just added
>>> editable=True to a sqlform.grid
>>>
>>> but i get the error
>>>
>>> 'Table' object has no attribute 'edit'
>>>
>>> when i press the edit button
>>>
>>>
>>> Any help ?
>>>
>>>
>>> Thank you
>>>
>>> António
>>>
>>> --
>> 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: 'Table' object has no attribute 'edit'

2016-05-13 Thread António Ramos
i had editable=False and got that error when changing to True

[image: Imagem inline 1]


2016-05-13 16:02 GMT+01:00 Anthony :

> More code...
>
>
> On Friday, May 13, 2016 at 10:21:53 AM UTC-4, Ramos wrote:
>>
>> Hi all
>> I just added
>> editable=True to a sqlform.grid
>>
>> but i get the error
>>
>> 'Table' object has no attribute 'edit'
>>
>> when i press the edit button
>>
>>
>> Any help ?
>>
>>
>> Thank you
>>
>> António
>>
>> --
> 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: 'Table' object has no attribute 'edit'

2016-05-13 Thread António Ramos
I think i found the problem
the edit button calls
http://myapp/empre/default/trabalhador/edit/t_docs/1398?_signature=2f406825cb013a61bc68879efade7d728c63370b
but the trabalhador function is not expecting the edit arg...

i have to rewind my head to the docs again...

2016-05-13 22:31 GMT+01:00 António Ramos <ramstei...@gmail.com>:

> web2py™ Version 2.9.5-stable+timestamp.2014.03.16.02.35.39
> Python Python 2.7.9: /usr/local/bin/python (prefix: /usr/local)Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> 12.
> 13.
> 14.
>
> Traceback (most recent call last):
>   File "/home/ramstein74/webapps/2py/web2py/gluon/restricted.py", line 220, 
> in restricted
> exec ccode in environment
>   File 
> "/home/ramstein74/webapps/2py/web2py/applications/empre/controllers/default.py"
>  <https://empre.cires.pt/admin/default/edit/empre/controllers/default.py>, 
> line 1872, in 
>   File "/home/ramstein74/webapps/2py/web2py/gluon/globals.py", line 385, in 
> 
> self._caller = lambda f: f()
>   File "/home/ramstein74/webapps/2py/web2py/gluon/tools.py", line 3287, in f
> return action(*a, **b)
>   File 
> "/home/ramstein74/webapps/2py/web2py/applications/empre/controllers/default.py"
>  <https://empre.cires.pt/admin/default/edit/empre/controllers/default.py>, 
> line 1603, in trabalhador
> person=db.trabalhador[query]
>   File "/home/ramstein74/webapps/2py/web2py/gluon/dal.py", line 8912, in 
> __getitem__
> return ogetattr(self, str(key))
> AttributeError: 'Table' object has no attribute 'edit'
>
> Error snapshot [image: help]
> <https://empre.cires.pt/admin/default/ticket/empre/194.65.91.147.2016-05-13.15-46-31.fe4a36d0-1c23-4d5f-8721-cf254f8d7779#>
>
> ('Table' object has no attribute 'edit')
>
> inspect attributes
> Frames
>
>-
>
>*File /home/ramstein74/webapps/2py/web2py/gluon/restricted.py in
>restricted at line 220* código argumentos variáveis
>-
>
>*File
>
> /home/ramstein74/webapps/2py/web2py/applications/empre/controllers/default.py
>in  at line 1872* código argumentos variáveis
>-
>
>*File /home/ramstein74/webapps/2py/web2py/gluon/globals.py in 
>at line 385* código argumentos variáveis
>-
>
>*File /home/ramstein74/webapps/2py/web2py/gluon/tools.py in f at line
>3287* código argumentos variáveis
>-
>
>*File
>
> /home/ramstein74/webapps/2py/web2py/applications/empre/controllers/default.py
>in trabalhador at line 1603* código argumentos variáveis
>-
>
>*File /home/ramstein74/webapps/2py/web2py/gluon/dal.py in __getitem__
>at line 8912* código argumentos variáveis
>Function argument list
>
>(self=
> (id,status,situation,check_po...sible,obs,anual,residente,updated,visit_counter)>,
>key='edit')
>Code listing
>
>8907.
>8908.
>8909.
>8910.
>8911.
>8912.
>
>8913.
>8914.
>8915.
>8916.
>
>query = self._build_query(key)
>return self._db(query).select(limitby=(0, 1), 
> orderby_on_limitby=False).first()
>elif str(key).isdigit() or 'google' in DRIVERS and isinstance(key, 
> Key):
>return self._db(self._id == key).select(limitby=(0, 1), 
> orderby_on_limitby=False).first()
>elif key:
>return ogetattr(self, str(key))
>
>
>def __call__(self, key=DEFAULT, **kwargs):
>for_update = kwargs.get('_for_update', False)
>if '_for_update' in kwargs:
>
>Variables
>builtinstr 
>self 
> (id,status,situation,check_po...sible,obs,anual,residente,updated,visit_counter)>
>global ogetattr 
>key 'edit'
>
>
> 2016-05-13 17:10 GMT+01:00 Anthony <abasta...@gmail.com>:
>
>> And let's see the full traceback.
>>
>> On Friday, May 13, 2016 at 11:18:30 AM UTC-4, Ramos wrote:
>>>
>>> i had editable=False and got that error when changing to True
>>>
>>> [image: Imagem inline 1]
>>>
>>>
>>> 2016-05-13 16:02 GMT+01:00 Anthony :
>>>
>>>> More code...
>>>>
>>>>
>>>> On Friday, May 13, 2016 at 10:21:53 AM UTC-4, Ramos wrote:
>>>>>
>>>>> Hi all
>>>>> I just added
>>>>> editable=True to a sqlform.grid
>>>>>
>>>>> but i get the error
>>>>>
>>>>> 'Table' object has no attribute 'edit'
>>>>>
>>>>> when i pres

Re: [web2py] Re: 'Table' object has no attribute 'edit'

2016-05-13 Thread António Ramos
web2py™ Version 2.9.5-stable+timestamp.2014.03.16.02.35.39
Python Python 2.7.9: /usr/local/bin/python (prefix: /usr/local)Traceback

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

Traceback (most recent call last):
  File "/home/ramstein74/webapps/2py/web2py/gluon/restricted.py", line
220, in restricted
exec ccode in environment
  File 
"/home/ramstein74/webapps/2py/web2py/applications/empre/controllers/default.py"
,
line 1872, in 
  File "/home/ramstein74/webapps/2py/web2py/gluon/globals.py", line
385, in 
self._caller = lambda f: f()
  File "/home/ramstein74/webapps/2py/web2py/gluon/tools.py", line 3287, in f
return action(*a, **b)
  File 
"/home/ramstein74/webapps/2py/web2py/applications/empre/controllers/default.py"
,
line 1603, in trabalhador
person=db.trabalhador[query]
  File "/home/ramstein74/webapps/2py/web2py/gluon/dal.py", line 8912,
in __getitem__
return ogetattr(self, str(key))
AttributeError: 'Table' object has no attribute 'edit'

Error snapshot [image: help]


('Table' object has no attribute 'edit')

inspect attributes
Frames

   -

   *File /home/ramstein74/webapps/2py/web2py/gluon/restricted.py in
   restricted at line 220* código argumentos variáveis
   -

   *File
   /home/ramstein74/webapps/2py/web2py/applications/empre/controllers/default.py
   in  at line 1872* código argumentos variáveis
   -

   *File /home/ramstein74/webapps/2py/web2py/gluon/globals.py in 
   at line 385* código argumentos variáveis
   -

   *File /home/ramstein74/webapps/2py/web2py/gluon/tools.py in f at line
   3287* código argumentos variáveis
   -

   *File
   /home/ramstein74/webapps/2py/web2py/applications/empre/controllers/default.py
   in trabalhador at line 1603* código argumentos variáveis
   -

   *File /home/ramstein74/webapps/2py/web2py/gluon/dal.py in __getitem__ at
   line 8912* código argumentos variáveis
   Function argument list

   (self=,
   key='edit')
   Code listing

   8907.
   8908.
   8909.
   8910.
   8911.
   8912.

   8913.
   8914.
   8915.
   8916.

   query = self._build_query(key)
   return self._db(query).select(limitby=(0, 1),
orderby_on_limitby=False).first()
   elif str(key).isdigit() or 'google' in DRIVERS and
isinstance(key, Key):
   return self._db(self._id == key).select(limitby=(0, 1),
orderby_on_limitby=False).first()
   elif key:
   return ogetattr(self, str(key))


   def __call__(self, key=DEFAULT, **kwargs):
   for_update = kwargs.get('_for_update', False)
   if '_for_update' in kwargs:

   Variables
   builtinstr 
   self 
   global ogetattr 
   key 'edit'


2016-05-13 17:10 GMT+01:00 Anthony :

> And let's see the full traceback.
>
> On Friday, May 13, 2016 at 11:18:30 AM UTC-4, Ramos wrote:
>>
>> i had editable=False and got that error when changing to True
>>
>> [image: Imagem inline 1]
>>
>>
>> 2016-05-13 16:02 GMT+01:00 Anthony :
>>
>>> More code...
>>>
>>>
>>> On Friday, May 13, 2016 at 10:21:53 AM UTC-4, Ramos wrote:

 Hi all
 I just added
 editable=True to a sqlform.grid

 but i get the error

 'Table' object has no attribute 'edit'

 when i press the edit button


 Any help ?


 Thank you

 António

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

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

[web2py] DAL suggestion with relations to list fields under a list:reference

2016-08-01 Thread António Ramos
Hello i have this situation and need some good ideas

I have
table :auth_user ("John","Oliver","Trump")
table :dbentities ( for example Person,Equipment,Company)
each entity on entities table has subentities field of type: list:string
for example for Person , subentities=["A","B","C"]

My case is this:

Each user will be allowed to upload files based on entity/subentities
allowed to him so i need to relate the 2 tables

db.define_table(
'dbentities',
Field('entity', length=25, requires=[IS_NOT_EMPTY()]),
Field('subentities','list:string'),
format='%(entity)s',
)

db.define_table(
'userentities',
Field('auth_user', db.auth_user),
Field('entities' , "list:reference db.dbentities",requires=IS_IN_DB(db,
'dbentities.id', '%(entity)s', multiple=True),label="Entities")
)


So far so good, i think.
But i need more . i need to define for each entity associated to a user the
respective subentities allowed.

For example i create 2 records in userentities.
One for User "John" selecting only "Person" and another for "Trump"
selecting also only "Person"

However for John i want to select the subentities "A" and "C" and for Trump
the subentity "B"
of Person


This way i can control later on a form what type of subentities files they
are allowed to upload .

Can anyone help  me the last mile ?

Regards
António

-- 
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] list:reference table but filtered based on row.field?

2016-08-01 Thread António Ramos
Hello

how can i have a requires=XXX to filter data on the referenced table based
on the field entities selected by the user?

db.define_table(
'usersubentities',
Field('auth_user', db.auth_user),
Field('entities' ,   "list:reference
db.dbentities",requires=IS_IN_DB(db, 'dbentities.id', '%(entity)s',
multiple=True),label="Entities"),
Field('subentities' ,"list:reference
db.entity",requires=XXX,label="Sub Entities")
)


Regards

-- 
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: Rethinkdb on Web2py

2016-07-26 Thread António Ramos
You can connect to rethinkdb with javascript...

2016-07-26 12:41 GMT+01:00 Marlysson Silva :

> I think that no.. because the DAL adapters in the web2py support only
> these databases:
>
>
> http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Connection-strings--the-uri-parameter-
>
>
> Em segunda-feira, 25 de julho de 2016 14:50:25 UTC-3, Oasis Agano escreveu:
>>
>> Is there a way of using rethinkdb on web2py framework
>>
> --
> 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: jquery-pjax

2016-08-02 Thread António Ramos
any demo with web2py?

2016-06-18 14:04 GMT+01:00 Massimo Di Pierro :

> Nice library.  It is a lot like web2py components but better. Perhaps
> web3py should use pjax.js
>
>
> On Tuesday, 14 June 2016 09:48:44 UTC-5, Niphlod wrote:
>>
>> great, simple, done.
>>
>> On Tuesday, June 14, 2016 at 2:34:22 PM UTC+2, Carlos Cesar Caballero
>> wrote:
>>>
>>> Hi everyone, have you any experience with
>>> https://github.com/defunkt/jquery-pjax and web2py? it looks really
>>> interesting.
>>>
>>> Greetings.
>>>
>>> --
>>> Este mensaje le ha llegado mediante el servicio de correo electronico
>>> que ofrece Infomed para respaldar el cumplimiento de las misiones del
>>> Sistema Nacional de Salud. La persona que envia este correo asume el
>>> compromiso de usar el servicio a tales fines y cumplir con las regulaciones
>>> establecidas
>>>
>>> Infomed: http://www.sld.cu/
>>>
>>> --
> 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: jquery-pjax

2016-08-11 Thread António Ramos
pjax without jquery dependency

https://github.com/MoOx/pjax

2016-08-02 22:11 GMT+01:00 Dave S <snidely@gmail.com>:

>
>
> On Tuesday, August 2, 2016 at 12:04:08 PM UTC-7, Ricardo Pedroso wrote:
>>
>> On 8/2/16, António Ramos <ramst...@gmail.com> wrote:
>> > any demo with web2py?
>>
>> I'm using it at http://missportuguesa.pt in a simple way.
>>
>> [detailed example]
>>
>
> Thanks, your code looks good (clear!) and the pjax readme at the github
> site is also straightforward (he says before trying it).
>
> The Mozilla pages on the history API seem like good background reading, so
> that us borrowers have a clue what's happening under the hood.
> <URL:https://developer.mozilla.org/en-US/docs/Web/API/History_API>
> They link to an example; a couple of other simple examples are at
> <URL:http://html5.gingerhost.com/>
> <URL:https://css-tricks.com/using-the-html5-history-api/ >
> (My history now includes "developer.mozzilla.org/dangit" from opening the
> console, and typing the obvious "history.pushstate(null, null, '/dangit'))
>
> /dps
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


[web2py] Making a filter to filter a collection in the view

2016-08-11 Thread António Ramos
Hello in a code like this

{{for row in rows:}}
  {{=row.param1}}
{{pass}}


i would like to have a way to have the user filter the result based on an
input box.

I like the angular and vue style of ng-repeat or v-for="row in rows" to
dinamically filter the rows without having to ask again the server for data.

It happens that this way i have to remove the above code and code only in
vue or angular.
Is there a simpler way? , because i want to keep it as web2pyish as
possible but also like the angular and vue way of filtering data on a page.



Thank you

António

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


Re: [web2py] Web2py and WebRTC?

2016-08-04 Thread António Ramos
https://www.youtube.com/watch?v=MUWy-NSrvNQ

2016-08-03 19:26 GMT+01:00 'Fernando Villarroel' via web2py-users <
web2py@googlegroups.com>:

> Dear.
>
> I think the deploy coments use a server like Asterisk or FreeSWITCH.
>
> So the deploy from Django surely use some library JavaScript for
> comunícate browsers like sip.js or another with websocket server (Asterisk
> or FreeSWITCH ).
>
> Regarding about webrtc i deploy a server webrtc using FreeSWITCH 1.6
>
>
> https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/7144556
>
> But i need know how i can do a websocket call to a single peer (browser
> user) from the server ws (FreeSWITCH); peer to peer
>
> From web2py i know that i can use tornado; but i do know how i can do
>
> Anyone could me some example?
>
> Regards
>
> Enviado desde mi iPhone
>
> El 03-08-2016, a las 10:14, Ron Chatterjee 
> escribió:
>
> Have you implemented something similar webrtc + web2py?
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [web2py] Re: How to check for the existence of a var in the layout.html?

2016-08-08 Thread António Ramos
:)

2016-08-08 15:24 GMT+01:00 Massimo Di Pierro :

>
> {{if 'f1' in globals():}} {{pass}}
>
>
> On Monday, 8 August 2016 06:33:55 UTC-5, Ramos wrote:
>>
>> hello i need to check for some vars in my *layout.html*
>>
>> if i have in my controllers  return locals()
>>
>> i can then in the view do
>>
>> {{if var1 in locals():0}}
>>
>> ...
>> {{pass}}
>>
>> however some of my views need a function from the controller so i do
>>
>>
>> def f1()
>>
>> return "something"
>>
>>
>> def index()
>> ...
>>
>> return dict(vara=1,varb=2,f1=f1)
>>
>>
>>
>> this way, in my *layout.html*  how do i test if vara exists in the view??
>>
>>
>> regards
>> António
>>
>>
>>
>> --
> 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] convert plain html to web2y HTML Helpers

2016-08-08 Thread António Ramos
How do i convert
this


  

  
BlaBlaBla

23 Abril 2016
  


to using A(_href=URL(...).etc?)


Thank you
António

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


[web2py] How to check for the existence of a var in the layout.html?

2016-08-08 Thread António Ramos
hello i need to check for some vars in my *layout.html*

if i have in my controllers  return locals()

i can then in the view do

{{if var1 in locals():0}}

...
{{pass}}

however some of my views need a function from the controller so i do


def f1()

return "something"


def index()
...

return dict(vara=1,varb=2,f1=f1)



this way, in my *layout.html*  how do i test if vara exists in the view??


regards
António

-- 
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: convert plain html to web2y HTML Helpers

2016-08-08 Thread António Ramos
Found it
  {{=A(
  I(_class='menu-icon fa fa-file bg-white'),
  DIV(
H4('file.pdf',_class="control-sidebar-subheading"),
P('23 Abril 2016'),
  _class="menu-info"),
  _href="")}}

2016-08-08 11:53 GMT+01:00 António Ramos <ramstei...@gmail.com>:

> How do i convert
> this
>
> 
>   
>
>   
> BlaBlaBla
>
> 23 Abril 2016
>   
> 
>
> to using A(_href=URL(...).etc?)
>
>
> Thank you
> António
>

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


<    5   6   7   8   9   10   11   12   13   14   >