[web2py] registration is pending in py4web

2019-07-27 Thread Frank Claessen
Hi all,

I am taking my first steps in py4web. After registering and trying to login 
I get "registration is pending' message. What am I overlooking?

TIA

Frank

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


[web2py] How to display images on a blog app index view

2019-06-26 Thread Ikem Frank Uzoma
Good day guys,
I just started using web2py and it is awesome. Thank you for this frame work.

I am building a blog app, how do I display images on the view displaying all my 
blog content.

Every tutorial have seen is displaying images on the detail view but I want to 
display both on my list view and detail view.

Ps:Images have been uploaded and is in my upload folder

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


Re: [web2py] Re: Web2py ports busy

2018-09-05 Thread FRANK OJAMBO
the tool am using is putty.

On Wed, 5 Sep 2018 at 00:18, Jim S  wrote:

> Sounds like you already have web2py (or something else) running on that
> port.
>
> You can try running on a different port using:
>
> python web2py.py -p 8001
>
> Or, use the tools on your host os to determine what is running on port
> 8000 and stop that process.
>
> -Jim
>
> On Tuesday, September 4, 2018 at 4:52:07 AM UTC-5, FRANK OJAMBO wrote:
>>
>> how can i  deploy or install web2py on domain hosting .
>>
>> each time i try to run the command "python web2py.py" i get
>>
>> please visit:
>> http://127.0.0.1:8000/
>> <http://www.google.com/url?q=http%3A%2F%2F127.0.0.1%3A8000%2F=D=1=AFQjCNFs1_JFhjr8Z-DCOM1R3AXQ16In5Q>
>> use "kill -SIGTERM 38820" to shutdown the web2py server
>>
>>
>> ERROR:Rocket.Errors.Port8000:Socket 127.0.0.1:8000 in use by other
>> process and it won't share.
>> WARNING:Rocket.Errors.Port8000:Listener started when not ready.
>>
>>
>> Even when i change the ports i still get the same error.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group 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 ports busy

2018-09-04 Thread FRANK OJAMBO
how can i  deploy or install web2py on domain hosting .

each time i try to run the command "python web2py.py" i get 

please visit:
http://127.0.0.1:8000/ 

use "kill -SIGTERM 38820" to shutdown the web2py server


ERROR:Rocket.Errors.Port8000:Socket 127.0.0.1:8000 in use by other process 
and it won't share.
WARNING:Rocket.Errors.Port8000:Listener started when not ready.


Even when i change the ports i still get the same error.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group 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: port 800 busy

2018-09-02 Thread FRANK OJAMBO
How can I tell there is another process running and how can I stop it. 

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


[web2py] port 800 busy

2018-09-02 Thread FRANK OJAMBO
hello why do i get this error each time i try to run on my webserver

frankizzo@web7:~/www/web2py$ python web2py.py
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2018
Version 2.17.1-stable+timestamp.2018.08.06.01.02.56
Database drivers available: sqlite3, imaplib, pyodbc, pymysql
choose a password:

please visit:
http://127.0.0.1:8000/
use "kill -SIGTERM 38820" to shutdown the web2py server


ERROR:Rocket.Errors.Port8000:Socket 127.0.0.1:8000 in use by other process 
and it won't share.
WARNING:Rocket.Errors.Port8000:Listener started when not ready.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group 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: trouble with request.var.checkbox list

2017-03-30 Thread Frank Claessen
Thx for clarifying Anthony.

Regards Frank

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group 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: trouble with request.var.checkbox list

2017-03-30 Thread Frank Claessen
Thx Nico,

I just figured out that it is indeed a string. However, as soon as I select 
more than 1 row, it becomes a list. I was under the assumption that it is 
always a list - appears not to be true.

Perhaps a suggestion to use one single format - list??

Regards 

Frank

p.s. I really enjoy using web2py - starting to appreciate it more and more

Op donderdag 30 maart 2017 07:42:52 UTC+2 schreef Nico de Groot:
>
> Hi Frank,
>
> This list is very active. I had trouble getting in sync after a week of 
> absence. In any case welcome!
>
> The variable is a string like '31' so if you Len() it you get 2. Just use 
> int() to make it a number.
>
> Nico de Groot 
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group 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] trouble with request.var.checkbox list

2017-03-29 Thread Frank Claessen
Hi all,

This is my first question for the list; up to now i have been lurking and 
learning mainly. Not sure if this list is still active.
I think it is fair to say I am not an experienced python programmer so - 
this might just be my lack of knowledge. Forgive me please if my question 
shows just that.

I built a form that enables users to choose more than 1 row through a 
checkbox.
This form and the subsequent handling just works fine, as long as I choose 
more than 1 row.

As the piece of code from the view below shows - the value for the box is 
the ID of the table-record:
===
 {{for lijst in lijsten:}}

{{=lijst.methode.titel}}
{{=lijst.woordenlijst.titel}}
{{=lijst.woordenlijst.taal_links}}
{{=lijst.woordenlijst.taal_rechts}}
 ! 

{{pass}}
===

If I however choose just one row that has an ID say 38 --> than the 
following happens when dealing with the choices:

===
   if request.vars:
for x in range(len(request.vars.keuzelijst)):

db.lijst_ovh.insert(gebruiker=auth.user_id,wlijst=request.vars.keuzelijst[x],overhoring=currentOvh)
===
First of all: the length of request.vars.keuzelijst appears to be 2 ??
The ID (38) is being split into 2 separate values: first loop  3 and the 
next loop 8

So what am I doing wrong here?

I hope you can help me with this 

Regards

Frank Claessen

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group 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 1.89.5

2016-06-02 Thread Frank Camp
Using google I found this one.  
http://www.imperiasoft.com/office-tools/pdf/web2py-1-89-5.html#

Like everything downloaded from the internet, check before you use. You never 
know what is inside an archive.

Frank

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group 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: datestamp with SQLFORM

2016-02-22 Thread Frank Bunt
You could do it in your model file

FIELD('when','datetime', default = request.utcnow),



This way the value is set when stored to database.

On Friday, February 19, 2016 at 11:37:46 PM UTC+1, Dave S wrote:
>
> I have an SQLFORM being used for a when-who-what type of function, for a 
> table roughly like
>
> db.define_table('stuff',
>   FIELD('where', 'string'),
>   FIELD('when',  'datetime'),
>   FIELD('who',   'string'),
>   FIELD('what',  'something'))# 'something'  is 'upload' in actual 
> code, but I don't think that matters
>
>
>
> And my controller does
>
>
> def getit():
>response.flash = T("Hello, fill out the form")
>message = T("tell me stuff")
>form = SQLFORM(db.stuff, fields=['who', 'what'])
>form.vars.where = request.client
>if form.process().accepted:
>  response.flash = "Yea!"
>   else:
>  response.flash = "Ooops!"
>   return dict(form = form, message=message)
>
>
>
> I'd like to get the db.stuff.when field updated with the time of 
> *submission*..  Would I do that as I did the where field? (using* 
> request.utcnow)*.  That gets the request time of the submitting, not the 
> time the empty form is built when the user first decides to tell me stuff? 
> (Normally, the difference isn't important, but if the user wanders off for 
> a cuppa and sees Teddy using the copier and they start discussing the 
> football pools .
>
> /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.


[web2py] Re: CAS with OpenSSL-Certificates

2016-02-19 Thread Frank Bunt
I'll give an older version a try. TIA.

On Tuesday, February 16, 2016 at 5:39:35 PM UTC+1, Niphlod wrote:
>
> imho 2.7.10 and its certificate validation done by default is messing the 
> consumer app. But you wouldn't absolutely be able to log in the consumer 
> 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.


[web2py] select insert record in shell

2014-09-29 Thread John Frank
i am starting to web2py and using shell for all db related stuff. today i 
notice a bizarre behavior on db select. Instead of selecting a record, it 
is insert value of last insert query. am i making any mistake here.. this 
my shell log:
In [5] : for x in row: print x
Row {'id': 1L, 'name': 'dog'}
Row {'id': 2L, 'name': 'bug'}
Row {'id': 3L, 'name': 'y'}

In [6] : db.dog.insert(name='hello')
4L

In [7] : db(db.dog).select()
Rows (5)

In [8] : db(db.dog._id  0).select()
Rows (6)

In [11] : rows = db(db.dog).select()

In [12] : for x1 in rows: print x1
Row {'id': 1L, 'name': 'dog'}
Row {'id': 2L, 'name': 'bug'}
Row {'id': 3L, 'name': 'y'}
Row {'id': 4L, 'name': 'hello'}
Row {'id': 5L, 'name': 'hello'}
Row {'id': 6L, 'name': 'hello'}
Row {'id': 7L, 'name': 'hello'}

In [13] : db._lastsql
'SELECT  dog.id, dog.name FROM dog WHERE (dog.id  0);'

In [14] : db(db.dog).select()
Rows (10)
 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: Suitability of web2py as control system

2014-09-28 Thread Frank Olaf Sem-Jacobsen
Sent a private message.

On Saturday, 27 September 2014 16:39:51 UTC+2, Massimo Di Pierro wrote:

 I am very exited by this project and will offer all the help I can. Feel 
 free to contact me personally.

 In principle you can use any web framework to control background demons 
 but I would consider yours a mission critical operation there I think it is 
 important to keep it simple and it keep it decoupled so if the web app 
 crashes the demons do not. 

 Yes web2py has a scheduler and Django has django-celery. They serve the 
 same purpose but come from two different prospectives. the web2py scheduler 
 assume that the communication between the web app and the tasks is light 
 compared to the time to execute tasks. Therefore this communication is 
 carried on using the database. Django-celery assumes the opposite (very 
 high concurrency) therefore it improves the communication of the web app 
 and tasks using celery. In my opinion the latter does not buy you anything 
  because one user will control the satellite at the time. It is not a high 
 concurrency system with many clients. Perhaps many tasks but not many 
 clients. django-celery will increase complexity with not real advantage to 
 you.

 Given that. it is not obvious to me that any of the two systems are what 
 you want. The reason is you do not execute many tasks that have a beginning 
 and end are autonomous. Your tasks are daemons which may need to receive 
 and return information to the caller without stopping. Moreover your demons 
 are mission critical and you want to decouple them as much as possible from 
 the web application.

 I would suggest the following architecture. Give each of your demon a 
 separate thread that exposes it primary functions via a Python xmlrpc 
 services. this is easy and I can send you examples. It should expose 
 functions to set the state and get the state. Have the demons log 
 everything on files and expose a functions to retrieve the log data from a 
 given timestamp.

 All the webapp needs to do is call those XMLRPC functions. Use the 
 database at the webapp level to keep a record of which functions were 
 called and their output.  Use a os tool (monit or something else) to 
 monitor and restart the demons.

 Your architecture will be very simple and foolproof and any component can 
 go down without comprising the rest.

 Massimo





 On Saturday, 27 September 2014 03:40:27 UTC-5, Frank Olaf Sem-Jacobsen 
 wrote:

 Hi everyone,

 I'm researching different Python Web frameworks in order to find the 
 perfect solution for building a simple satellite control centre. Such an 
 application places large demands on the ability to schedule and manage 
 background tasks to communicate with the satellite, monitor the operation 
 of such tasks to ensure that everything is working as it should, and 
 overall stability of the system.

 I'm looking at a web framework since I want to have it easy to use for 
 the operators. We're multiple operators, and having everyone using a single 
 stand-alone operation application or individual applications on their own 
 systems is quite cumbersome and difficult to synchronise. I believe that a 
 web application solution should allow me detailed control over the 
 satellite control centre software with an easily accessible user interface.

 What I'm looking for is a web framework that allows me to operate two 
 components: a daemon that communicates with the rest of the satellite 
 software (upload control commands, upload schedules, download files, 
 monitor telemetry), and a web front end to communicate with the daemon. As 
 far as I can see from the web2py documentation there is good support for 
 running background tasks which is critical for my application. It is 
 crucial that such a background task has access to all information stored by 
 the Web application (satellite schedules, configurations, et cetera). I'm 
 looking for a relatively compact solution so I do not have to maintain a 
 lots of different software to have everything working. 

 For a simple operating example, consider having to upload scheduled 
 commands whenever the satellite is visible, while at the same time forking 
 out a separate thread to handle data download and processing to be 
 funnelled through to an external system. At the same time it should be 
 possible to upload real-time commands from the interface when the satellite 
 is visible for debugging and disaster recovery.

 As it stands now I think the choice is between web2py and django with 
 celerey.

 Based on this very brief summary of my requirements, do you have any 
 comments on the suitability of web2py to satisfy my needs? There is a huge 
 amount of Python Web application frameworks to choose from, and it is 
 important that I choose something that I can live with for a long time 
 since I have limited development resources (meaning that I cannot try out 
 several frameworks to see which I like best).

 Your input is appreciated

[web2py] Suitability of web2py as control system

2014-09-27 Thread Frank Olaf Sem-Jacobsen
Hi everyone,

I'm researching different Python Web frameworks in order to find the 
perfect solution for building a simple satellite control centre. Such an 
application places large demands on the ability to schedule and manage 
background tasks to communicate with the satellite, monitor the operation 
of such tasks to ensure that everything is working as it should, and 
overall stability of the system.

I'm looking at a web framework since I want to have it easy to use for the 
operators. We're multiple operators, and having everyone using a single 
stand-alone operation application or individual applications on their own 
systems is quite cumbersome and difficult to synchronise. I believe that a 
web application solution should allow me detailed control over the 
satellite control centre software with an easily accessible user interface.

What I'm looking for is a web framework that allows me to operate two 
components: a daemon that communicates with the rest of the satellite 
software (upload control commands, upload schedules, download files, 
monitor telemetry), and a web front end to communicate with the daemon. As 
far as I can see from the web2py documentation there is good support for 
running background tasks which is critical for my application. It is 
crucial that such a background task has access to all information stored by 
the Web application (satellite schedules, configurations, et cetera). I'm 
looking for a relatively compact solution so I do not have to maintain a 
lots of different software to have everything working. 

For a simple operating example, consider having to upload scheduled 
commands whenever the satellite is visible, while at the same time forking 
out a separate thread to handle data download and processing to be 
funnelled through to an external system. At the same time it should be 
possible to upload real-time commands from the interface when the satellite 
is visible for debugging and disaster recovery.

As it stands now I think the choice is between web2py and django with 
celerey.

Based on this very brief summary of my requirements, do you have any 
comments on the suitability of web2py to satisfy my needs? There is a huge 
amount of Python Web application frameworks to choose from, and it is 
important that I choose something that I can live with for a long time 
since I have limited development resources (meaning that I cannot try out 
several frameworks to see which I like best).

Your input is appreciated.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: double form in display_form

2014-08-09 Thread Frank Claessen
Thank you!!

Regards Frank

Op zaterdag 9 augustus 2014 04:10:19 UTC+2 schreef Massimo Di Pierro:

 Remove this {{=BEAUTIFY(response._vars)}} 

 response._vars is {'form':form}.



 On Friday, 8 August 2014 03:42:41 UTC-5, Frank Claessen wrote:

 Hi all,

 I am working through the manual for web2py the web2py_manual_5th.pdf to 
 be exact. I try to  simulate the code that is to be found in the chapter on 
 forms paragraph 7.1 FORMS

 I created a new application called testingforms.
 No changes to any files but the controller default.py

 I added the following def:

 def display_form():
 form=FORM('Your name:', INPUT(_name='name', requires=IS_NOT_EMPTY()),
   INPUT(_type='submit'))
 return dict(form=form)

 Then I added the default/display_form.html file and added:

 {{extend 'layout.html'}}
 h1Testing a form/h1
 {{=form}}
 {{=BEAUTIFY(response._vars)}}

 Than, at looking at  
 http://127.0.0.1:8000/testingforms/default/display_form

 the view shows a double form-entry: 

 Testingforms 
 Testing a formYour name:
 form:Your name:Why does this happen and what did I do wrong here?

 Meanwhile I tested around somewhat and discovered that - if I remove the 
 {{form}} entry inside the display_form view, the form is still shown.

 that means, the lower part of the image show above shows up.

 Don't know why this happens

 Tia

 Frank



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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] double form in display_form

2014-08-08 Thread Frank Claessen
Hi all,

I am working through the manual for web2py the web2py_manual_5th.pdf to be 
exact. I try to  simulate the code that is to be found in the chapter on 
forms paragraph 7.1 FORMS

I created a new application called testingforms.
No changes to any files but the controller default.py

I added the following def:

def display_form():
form=FORM('Your name:', INPUT(_name='name', requires=IS_NOT_EMPTY()),
  INPUT(_type='submit'))
return dict(form=form)

Then I added the default/display_form.html file and added:

{{extend 'layout.html'}}
h1Testing a form/h1
{{=form}}
{{=BEAUTIFY(response._vars)}}

Than, at looking at  http://127.0.0.1:8000/testingforms/default/display_form

the view shows a double form-entry: 

Testingforms 
Testing a formYour name:
form:Your name:Why does this happen and what did I do wrong here?

Meanwhile I tested around somewhat and discovered that - if I remove the 
{{form}} entry inside the display_form view, the form is still shown.

that means, the lower part of the image show above shows up.

Don't know why this happens

Tia

Frank

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: SQLFORM doesn't have SELECT element values

2014-07-22 Thread Frank Buibish
I just checked what was being sent via POST, and it's not submitting an 
empty variable corresponding with the select name.  Now could this be 
because the select tag isn't an input tag?  I'm not an html pro yet, so 
small details like this are something i will learn with time.  Any 
suggestions on workarounds?  Should I have a hidden input field that stores 
what is in the select field? or should I use a different form inside of a 
form (not even sure that is possible).

Thanks for any suggestions

Frank

On Monday, July 21, 2014 10:38:38 PM UTC-4, Anthony wrote:

 Yes, you're allowed to bump. Use the browser developer tools to see what 
 gets sent to the server when you submit the form. Perhaps the problem is 
 with the JavaScript on the client side.

 Anthony

 On Monday, July 21, 2014 8:18:30 PM UTC-4, Frank Buibish wrote:

 Am I allowed to bump in this forum? if not this shall be the last 
 time...most likely

 On Thursday, July 17, 2014 10:43:56 PM UTC-4, Frank Buibish wrote:

 select id=selected-exercises multiple= name=exercises
   option value=2 class=btn btn-defaultBench/option
 /select

 They get added through javascript from the first select element.

 On Thursday, July 17, 2014 10:14:17 PM UTC-4, Anthony wrote:

 The first select has no name, and the second one has no options.



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: SQLFORM doesn't have SELECT element values

2014-07-21 Thread Frank Buibish
Am I allowed to bump in this forum? if not this shall be the last 
time...most likely

On Thursday, July 17, 2014 10:43:56 PM UTC-4, Frank Buibish wrote:

 select id=selected-exercises multiple= name=exercises
   option value=2 class=btn btn-defaultBench/option
 /select

 They get added through javascript from the first select element.

 On Thursday, July 17, 2014 10:14:17 PM UTC-4, Anthony wrote:

 The first select has no name, and the second one has no options.



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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] SQLFORM doesn't have SELECT element values

2014-07-17 Thread Frank Buibish
So I'm trying to build a multiple select box where i move things from a 
select box on the left and put them on the right.  I have the values moving 
correctly through javascript but when i submit the form it doesn't pick up 
the value in the form.vars.
 forms = dict()

forms[0] = SQLFORM(db.stuff, submit_button='Create')
forms[0].element(_type='submit')['_class']='btn'
forms[0][0].insert(-1, TR(A(Add, \
_id=add, \
_class=btn btn-default btd-md ), 
_id=buttons))
forms[0][0].insert(-1, TR(sbox, SELECT(_id=selected, _name=selections, 
_multiple=),**sbox_attributes))
forms[0][0].insert(-1, TR(A(- Remove, \
_id=remove, \
_class=btn btn-default btd-md ) 
,_id=buttons))

I add the button in a TR then the two SELECT boxes, sbox is a predefined 
SELECT box with prepopulated with options.  How do I get the form to submit 
the the values of the select box with name=selections?  Do i need to use 
a custom form? just using the plain FORM tags?

Also as a side note, so on this page i have multiple forms, but could 
potentially be hundreds of forms, hence the dictionary of forms.  Is it 
better to send all the forms at once when the page is loaded? or should I 
only send the id's of the records and then when clicked send the forms?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: SQLFORM doesn't have SELECT element values

2014-07-17 Thread Frank Buibish
It does not just says none

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: SQLFORM doesn't have SELECT element values

2014-07-17 Thread Frank Buibish
form action=# enctype=multipart/form-data method=post
  table
   tbody
tr id=workout_title__row
  td class=w2p_fllabel for=workout_title 
id=workout_title__labelTitle: /label/td
  td class=w2p_fwinput class=string id=workout_title 
name=title type=text value=/td
  td class=w2p_fc/td
   /tr
   tr id=workout_duration__row
 td class=w2p_fl
  label for=workout_duration id=workout_duration__labelHow long 
is this workout?: /label
 /td
 td class=w2p_fwinput class=time id=workout_duration 
name=duration type=text value=/td
 td class=w2p_fc/td
   /tr
   tr id=exercise-buttons
 td
   a class=btn btn-default btd-md id=add-exerciseAdd Exercise 
+/a
 /td
/tr
tr data-toggle=buttons-checkbox id=selectbox
  td
select id=available-exercises multiple=
  option class=btn btn-default value=2Bench/option
  option class=btn btn-default value=4Kettle Bell 
Breathing/option
  option class=btn btn-default value=1Squat/option
  option class=btn btn-default value=3Zercher Squat/option
/select/td
  td
select id=selected-exercises multiple= name=exercises
/select
  /td 
   /tr
   tr id=exercise-buttons
 td
   a class=btn btn-default btd-md id=remove-exercise- Remove 
Exercise/a
 /td
   /tr
   tr id=submit_record__row
  td class=w2p_fl/td
  td class=w2p_fw
input class=btn type=submit value=Create/td
  td class=w2p_fc/td
/tr
/tbody
  /table
  div style=display:none;
input name=_formkey type=hidden 
value=dd5d698b-0d2a-44bb-9490-46730b2123c2
input name=_formname type=hidden value=workout/create
  /div
/form

On Thursday, July 17, 2014 9:17:55 PM UTC-4, Anthony wrote:

 What does the final form HTML end up looking like in the web page?

 On Thursday, July 17, 2014 8:39:26 PM UTC-4, Frank Buibish wrote:

 It does not just says none



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: SQLFORM doesn't have SELECT element values

2014-07-17 Thread Frank Buibish
select id=selected-exercises multiple= name=exercises
  option value=2 class=btn btn-defaultBench/option
/select

They get added through javascript from the first select element.

On Thursday, July 17, 2014 10:14:17 PM UTC-4, Anthony wrote:

 The first select has no name, and the second one has no options.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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] Social Login

2014-05-16 Thread Frank Buibish
I just downloaded web2py like a month and a half ago.  How do I check if I 
have the latest version? but I'm pretty sure it's a oauth issue.  So I was 
able to use firefox to trace the networks calls and the response was empty, 
however I went to the logs directory and it's empty.  I am on a Mac is 
there anything I need to run to get the logs working?  I thought it was 
just a executable?

On a side note here is the module I am using to authenticate:

from gluon import *
from gluon.contrib.login_methods.oauth10a_account import OAuthAccount
import oauth2 as oauth
import gluon.contrib.simplejson as json
import twitter
from urlparse import parse_qsl


class TwitterAccount(OAuthAccount):
def get_user(self):
if self.accessToken() is None:
return

client = oauth.Client(self.consumer, self.accessToken())
url = 'http://api.twitter.com/1/account/verify_credentials.json'
resp, content = client.request(url)

if resp['status'] != '200':
return None
u = json.loads(content)

token = current.session.access_token

return dict(name=u['name'],
username=u['screen_name'],
registration_id=u['id'])

This results in too many redirects error, but when I change

from gluon.contrib.login_methods.oauth10a_account import OAuthAccount

to

from gluon.contrib.login_methods.oauth20_account import OAuthAccount

this results in twitter saying:

Whoa there!

There is no request token for this page. That's the special key we need 
from applications asking to use your Twitter account. Please go back to the 
site or application that sent you here and try again; it was probably just 
a mistake.

Should I be using the App-only authentication in the twitter application 
settings? aka this:

https://api.twitter.com/oauth2/token

because this is what I have set in my data module:
AUTH_URL=https://api.twitter.com/oauth/authorize;
TOKEN_URL=https://api.twitter.com/oauth/request_token;
ACCESS_TOKEN_URL=https://api.twitter.com/oauth/access_token;

and in my db.py:

if session.auth_with:
if session.auth_with == 'twitter':
from applications.Project.modules import twitter_account
toa = local_import('twitter_oauth_data')
CLIENT_ID = toa.CLIENT_ID
CLIENT_SECRET = toa.CLIENT_SECRET
AUTH_URL = toa.AUTH_URL
TOKEN_URL = toa.TOKEN_URL
ACCESS_TOKEN_URL = toa.ACCESS_TOKEN_URL

auth.settings.login_form = twitter_account.TwitterAccount(globals(),
CLIENT_ID,
CLIENT_SECRET,
AUTH_URL, TOKEN_URL,
ACCESS_TOKEN_URL)

Like I said I'm new to python and really web development in general, also 
thanks for the quick reply.

On Thursday, May 15, 2014 5:34:32 PM UTC-4, Michele Comitini wrote:

 First check that you are on latest stable version of web2py.  Google 
 has changed suddenly a fundamental HTTP header this is now correctly 
 managed inside web2py. 

 Check that you have web2py's session object working properly. 

 If you are still having issues, just press F12 (either chrome or ffox 
 will do) and look at all the request response sequence that happens 
 inside the browser.  If there is an error it's likely that you will 
 see some message by looking at the response content. 

 If no error comes up in the browser check web2py logs carefully for 
 errors happening inside web2py's oauth module. 



 2014-05-15 15:59 GMT+02:00 Frank Buibish fbui...@gmail.com javascript:: 

  I'm having the same issue with no luck, and I am new to python 
 development. 
  What exactly should I be looking for in the network request trace? or 
 how do 
  i check my OAuth configuration? 
  
  
  On Friday, December 6, 2013 12:49:24 PM UTC-5, Michele Comitini wrote: 
  
  That error is usually caused by misconfigured OAuth, but  there are 
  different possible causes, the best way to find out is to trace all 
 network 
  requests using firefox firebug or chromium developer tools. 
  
  
  2013/12/6 Cássio Botaro cassio...@gmail.com 
  
  I made chages but doesn't work. 
  
  Look the error: 
  
  
 https://drive.google.com/file/d/0B8vO2VBhd7XVeF9WOW9aRlZ4Y28/edit?usp=sharing 
  
  -- 
  Resources: 
  - http://web2py.com 
  - http://web2py.com/book (Documentation) 
  - http://github.com/web2py/web2py (Source code) 
  - https://code.google.com/p/web2py/issues/list (Report Issues) 
  --- 
  You received this message because you are 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/groups/opt_out. 
  
  
  -- 
  Resources: 
  - http://web2py.com 
  - http://web2py.com/book (Documentation) 
  - http://github.com

Re: [web2py] Social Login

2014-05-15 Thread Frank Buibish
I'm having the same issue with no luck, and I am new to python development. 
 What exactly should I be looking for in the network request trace? or how 
do i check my OAuth configuration?

On Friday, December 6, 2013 12:49:24 PM UTC-5, Michele Comitini wrote:

 That error is usually caused by misconfigured OAuth, but  there are 
 different possible causes, the best way to find out is to trace all network 
 requests using firefox firebug or chromium developer tools. 


 2013/12/6 Cássio Botaro cassio...@gmail.com javascript:

 I made chages but doesn't work.

 Look the error:

 https://drive.google.com/file/d/0B8vO2VBhd7XVeF9WOW9aRlZ4Y28/edit?usp=sharing
  
 -- 
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 --- 
 You received this message because you are 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




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


Re: [web2py] Re: web2py conference, next week!

2014-04-26 Thread Frank
On 26 Apr 2014 at 10:47:30, Greg Vaughan (greg.s.vaug...@gmail.com) wrote:
Make the next one in Sydney (Australia) Massimo :)
 

Just joking... all the best for it and looking forward to seeing the videos...
+1. are any videos out there from past conferences ?



On Saturday, 26 April 2014 13:08:01 UTC+10, Massimo Di Pierro wrote:
Please register only if you plan to attend in person. We will record the talks 
and post them.

On Friday, 25 April 2014 16:29:28 UTC-5, David Rager wrote:
Is there an online option (if you don't tick the will attend in person)?

On Thursday, April 24, 2014 9:20:56 AM UTC-6, Massimo Di Pierro wrote:
There is one more to the first web2py conference

http://www.experts4solutions.com/web2py_conference

We got a bigger room and we can take 10-15 more people. register now!

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, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: scheduler

2014-04-24 Thread Frank
On 24 Apr 2014 at 08:42:27, Niphlod (niph...@gmail.com) wrote:


On Wednesday, April 23, 2014 10:53:01 PM UTC+2, ureal frank wrote:
Hi Niphold,

many thanks for your reply and valuable tips.
On 23 Apr 2014 at 20:59:52, Niphlod (nip...@gmail.com) wrote:

you're doing all wrong. Stop copy/pasting for a sec and take a look to 
docs.it'll save you from multiple headaches.
Despite my error, isn’t it normal doing some copy-past while giving  first 
steps?


For some peoples, apparently : I'm just saying that you'll save headaches NOT 
copy/pasting :P
web2py stack is huge. the documentation is also huge and detailed.  
this is great but for newbies this is massive :)
hey this is not an escuse, I have too many things to learn and I am loving it.


 

I’ve changed the code to this last newer form and it is working fine.
Yes It makes sense but I think what confuses me most is the ‘so many ways to do 
it’.

Meanwhile, looking here 
http://web2py.com/books/default/chapter/29/07/forms-and-validators I can’t 
figure where is the newer or ‘older’ version.

It's the first section on FORM and SQLFORM :D
Oh I see… I was understanding it wrong…
I though that in the handbook I would read a bold ‘deprecated’ vs ‘new way of 
doing things’.

Once again many thanks for your help and time :) 

Regards,
Frank



http://web2py.com/books/default/chapter/29/07/forms-and-validators#The-process-and-validate-methods
http://web2py.com/books/default/chapter/29/07/forms-and-validators#The-process-method
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: scheduler

2014-04-23 Thread Frank
Hi Niphold,

many thanks for your reply and valuable tips.
On 23 Apr 2014 at 20:59:52, Niphlod (niph...@gmail.com) wrote:

you're doing all wrong. Stop copy/pasting for a sec and take a look to 
docs.it'll save you from multiple headaches.
Despite my error, isn’t it normal doing some copy-past while giving  first 
steps?



in this case, you're doing wrong form processing.

It's either

form = SQLFORM(...)
if form.accepts(request.vars, session):
    things to do when form is valid
elif form.errors:
    things to do when form has errors
else:
    things to do when page is loaded the first time
return dict(form=form)



or (newer)

form = SQLFORM(...)
if form.process().accepted:
    things to do when form is valid
elif form.errors:
    things to do when form has errors
else:
    things to do when page is loaded the first time
return dict(form=form)



I’ve changed the code to this last newer form and it is working fine.
Yes It makes sense but I think what confuses me most is the ‘so many ways to do 
it’.

Meanwhile, looking here 
http://web2py.com/books/default/chapter/29/07/forms-and-validators I can’t 
figure where is the newer or ‘older’ version.

regards,
Frank



On Tuesday, April 22, 2014 7:32:03 PM UTC+2, ureal frank wrote:
Hi,

/newbie here/

I’ve up and running a very very simple task scheduler but I think it’s not well 
designed :/

under models/scheduler.py I have:


from gluon.scheduler import Scheduler

def task_add(name, target):
    sum = 'hello ' + name + ' ' + target + '\n'
    with open('/tmp/tasks', 'w') as f:
        f.write(sum)

scheduler = Scheduler(db, dict(task_add=task_add))
“

and in controller:

“
def new():

    form = SQLFORM(db.scan)
 
    name = “”
    target = “

    if form.process().accepts(request.vars, session):

        name = form.vars.name
        target = form.vars.target

        response.flash = ‘Great scan'

    elif form.errors:
        response.flash = 'Error, try again'

    scheduler.queue_task('task_add’,
pargs=[],
        pvars={'name': name, 'target': target},
        start_time=request.now,     #datetime
        stop_time = None,           #datetime
        timeout = 60,               #seconds
        prevent_drift=False,
        period=60,                  #seconds
        immediate=False,
        repeats = 1)

    return dict(scans=scans, form=form)
“

This snippet is working but I think this “scheduler.queue_task(…)” should be 
processed inside “if form.process().accepts()”. But if I change the scheduler 
snipper into that code section, the task wont run and I don’t know why.

two: questions
1) what I am  doing wrong?
1.1) Maybe I should db.commit when the task is over. Should I code this under 
scheduler.py? 
2) where can I learn more about debugging?

Many many thanks in advance :)

Cheers,
-- 
Frank
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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] scheduler

2014-04-22 Thread Frank
Hi,

/newbie here/

I’ve up and running a very very simple task scheduler but I think it’s not well 
designed :/

under models/scheduler.py I have:


from gluon.scheduler import Scheduler

def task_add(name, target):
    sum = 'hello ' + name + ' ' + target + '\n'
    with open('/tmp/tasks', 'w') as f:
        f.write(sum)

scheduler = Scheduler(db, dict(task_add=task_add))
“

and in controller:

“
def new():

    form = SQLFORM(db.scan)
 
    name = “”
    target = “

    if form.process().accepts(request.vars, session):

        name = form.vars.name
        target = form.vars.target

        response.flash = ‘Great scan'

    elif form.errors:
        response.flash = 'Error, try again'

    scheduler.queue_task('task_add’,
pargs=[],
        pvars={'name': name, 'target': target},
        start_time=request.now,     #datetime
        stop_time = None,           #datetime
        timeout = 60,               #seconds
        prevent_drift=False,
        period=60,                  #seconds
        immediate=False,
        repeats = 1)

    return dict(scans=scans, form=form)
“

This snippet is working but I think this “scheduler.queue_task(…)” should be 
processed inside “if form.process().accepts()”. But if I change the scheduler 
snipper into that code section, the task wont run and I don’t know why.

two: questions
1) what I am  doing wrong?
1.1) Maybe I should db.commit when the task is over. Should I code this under 
scheduler.py? 
2) where can I learn more about debugging?

Many many thanks in advance :)

Cheers,
-- 
Frank

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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-mini-conference, May 4, 2014

2014-04-07 Thread Frank

On 3 Apr 2014 at 20:58:41, Massimo Di Pierro (massimo.dipie...@gmail.com) wrote:

Registration is closed. We exceeded room capacity. We have sponsors, 
volunteers, talks proposals, and a lot of work ahead of us. It is going to be 
great.
We will do our best to record everything.
‘… record everything’ - #win #thanks :) 



Massimo

On Monday, 3 March 2014 09:36:29 UTC-6, Massimo Di Pierro wrote:
We have a date, a location, and a web site:

     http://www.experts4solutions.com/web2py_conference

Please register if you plan to attend.
The more the merrier. We are looking for sponsors.

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, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: handbook, Configuring layout

2014-03-30 Thread ureal frank
yes! :) thanks Marco.

(someone with write permissions can fix the handbook? kthxbye)

On Sunday, March 30, 2014, Marco Mansilla thebigsho...@gmail.com wrote:

 El Sat, 29 Mar 2014 17:59:19 +
 Frank urealfr...@gmail.com javascript:; escribió:

  Hi,
 
  I’m too newbie to know if this is a typo or an error but,
  here
 http://web2py.com/books/default/chapter/29/03/overview#Configuring-the-layout
  when Massimo writes “(…) In fact, the static/base.css stylesheet is
  well documented and described in Chapter 5 (…), I can’t find
  any reference to this ‘static/base.css’ file under chapter 5 or under
  the
  official repo
 https://github.com/web2py/web2py/tree/master/applications/welcome/static/css
 
  Maybe I am missing something or this ‘static/base.css’ file should be
  another one?
 
  Cheers,
  --
  Frank
 

 I guess you're looking for web2py.css in static/css/

 Marco.

 --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to the Google Groups
 web2py-users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com javascript:;.
 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] handbook, Configuring layout

2014-03-29 Thread Frank
Hi,

I’m too newbie to know if this is a typo or an error but, here 
http://web2py.com/books/default/chapter/29/03/overview#Configuring-the-layout
when Massimo writes “(…) In fact, the static/base.css stylesheet is well 
documented and described in Chapter 5 (…), I can’t find any reference to this 
‘static/base.css’ file under chapter 5 or under the official repo 
https://github.com/web2py/web2py/tree/master/applications/welcome/static/css

Maybe I am missing something or this ‘static/base.css’ file should be another 
one? 

Cheers,
-- 
Frank

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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 python.org layout

2014-03-24 Thread ureal frank
On Sunday, March 23, 2014, Michele Comitini michele.comit...@gmail.com
wrote:

 ;-) ;-)
 From that page you sent I understand that Ansible is starting to get
 more traction than chef.
 Ansible is in python or what?


yes and imho way cool. you didn't need agents On clients neither a weird
infrastructure with daemons to manage your infrastructure.


 C'mon, we are talking about the *python* software foundation, they
 must favour a python based product, unless there is no other way.
 Deploying a django based application is such a pain that one starts
 looking for anything that can help automate the task.  Paradoxically
 they had used RoR they wouldn't need chef.
 ;-) ;-)

 2014-03-23 22:04 GMT+01:00 Niphlod niph...@gmail.com javascript:;:
  offtopic
  you don't have to move to RoR. chef is just an emerging standard in
  deployment recipes (you may also intend it as buzzword-project gone
  right). See it as fabric snippets on steroids.
  Puppet, ansible, salt, etc, are also on the same family.
  http://redmonk.com/sogrady/2013/12/06/configuration-management-2013/
  Instead of doing 'bash setup-*.sh' you do 'chef therecipe.rb'
  The fact that it needs ruby (not RoR) it's just due to the fact that
  creating DSL is much easier in ruby than python.
  /offtopic
 
  On Sunday, March 23, 2014 6:38:55 PM UTC+1, Michele Comitini wrote:
 
  2014-03-23 18:31 GMT+01:00 Niphlod nip...@gmail.com javascript:;:
   having a chef opcode does not count as ruby is needed. Given chef's
   spread, it's exactly as if we shipped all scripts/setup* scripts in
   ruby.
  I hope not!  I started using web2py to avoid moving to ruby RoR! ;-)
 
  --
  Resources:
  - http://web2py.com
  - http://web2py.com/book (Documentation)
  - http://github.com/web2py/web2py (Source code)
  - https://code.google.com/p/web2py/issues/list (Report Issues)
  ---
  You received this message because you are subscribed to the Google Groups
  web2py-users group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to web2py+unsubscr...@googlegroups.com javascript:;.
  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 javascript:;.
 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: test post

2014-03-21 Thread Frank

On 20 Mar 2014 at 22:30:30, Massimo Di Pierro (massimo.dipie...@gmail.com) 
wrote:

Lots of users have been having this problem recently. I do not know what to 
say. Must be a Google bug. we do not delete post unless requested by the author.
+1, mine too 



On Thursday, 20 March 2014 04:21:38 UTC-5, Daniel McBrearty wrote:
excuse me - my last post seems to have disappeared into the sub-ether waveband 
...
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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] web2pyslices

2014-03-18 Thread Frank
Hi,

I don’t see any “bug/issue report” on web2pyslices. Is there one?

I’ve posted a recipe comment but I don’t see (also) the comment anywhere or any 
flash message saying it will be checked for approval or so.

my 2 cents,

Cheers, 
-- 
Frank

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: CAS provider and registration

2014-03-14 Thread ureal frank


On Sunday, February 16, 2014 5:10:16 PM UTC, Massimo Di Pierro wrote:

 I am open to change this. Do you want to attempt a patch to address some 
 of the issues?


Any news regarding this issue? I've tested it today with 2.9.4 and the 
behaviour is the same. it would be awesome to have this 'fixed'.
 


 Massimo



 On Sunday, 16 February 2014 05:39:31 UTC-6, Alexei Vinidiktov wrote:

 The first issue is that the client app that uses a cas provider only 
 provides one option: to log in - in the top navigation bar. I think some 
 users would be at a loss as to how to register since there is no explicit 
 link.

 The second and third issues are with the cas provider login page. After 
 the user follows the login link in the cas client app what they see in the 
 cas provider app is the navigation bar that has a drop down menu that says 
 Login. And they see two fields for entering their email and password and 
 a single login button. 

 So the second issue is that coming from the cas client page they can 
 wrongly assume that the login drop down menu in the navigation bar of the 
 cas provider app can only log them in (not register). 

 A work around would be to use the default mode for the auth links in the 
 nav bar which will show all the links (login, registration, lost password) 
 on the nav bar (instead of a drop down). 

 The third issue is with the single login button on the cas provider app. 
 For consistency with the normal (not cas) login pages I think that instead 
 of showing only one login button it would be more user-friendly if the 
 login page in the cas provider displayed the same buttons underneath the 
 email and password boxes - the login, register and lost password button - 
 as the normal login page does.

 The fourth issue is that if the user is not registered and thus goes from 
 the client app to the cas login page and from there to the cas registration 
 page, after a successful registration they are not redirected to the cas 
 client app. I think many users would not know how to return to the cas 
 client app after the registration.


 On Sun, Feb 16, 2014 at 2:34 PM, Tim Richardson 
 t...@growthpath.com.auwrote:

 As long as you allow users to register in your auth settings (and by 
 default they can), there is a register option on the login menu of the cas 
 screen. 
 This is based on trunk.

  -- 
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)

 --- 
 You received this message because you are 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/groups/opt_out.




 -- 
 Alexei Vinidiktov 



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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: multiple response.menu

2014-03-10 Thread Frank
On 10 Mar 2014 at 01:29:03, Massimo Di Pierro (massimo.dipie...@gmail.com) 
wrote:


On Friday, 7 March 2014 09:22:02 UTC-6, ureal frank wrote:
Hi,

I'm very new to web2py.
I've started watching Massimo's vimeo posts and I like what I am seeing, even 
thinking some concepts are little strange at the beginning :)

Well, my 3 questions are:

- Can I define/use multiple menus inside one app?

Yes. You can have response.menu = [...] in mutiple places and execute them 
conditionally.
awesome :)


 

- While using PostgreSQL or so, can I share the same database between different 
apps? I've made this question because I want somehow to split one site in two 
apps.  The website where users can register for a demo and the backoffice, 
running in a different server where users do their stuff. I just want to share 
the registered users and information like this.

yes. Just have multiple apps use the same db =DAL(...). Each app will need 
db.define_table(...) for the tables they need to access.
 
I think CAS could solve this but I am not sure.

You only need cas if you want to share authentication.
 

- finally (sorry guys): Can I hide the appname from the URL?

in routes.py

appname = 'yourappname'
routes_out = 
[['/admin/$anything','/admin/$anything'],['/'+appname+'/$anything','/$anything']]
routes_in = 
[['/admin/$anything','/admin/$anything'],['/$anything','/'+appname+'/$anything']]
great! 

many thanks :)


 

I hope to have many more questions :)

Many thanks in advance :)
Frank
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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] http://www.web2pyslices.com/ - Unhandled Exception

2014-03-10 Thread Frank
Hi,

Didn’t know where to report but http://www.web2pyslices.com/ is having some 
issues. Anyone? 

Cheers,
-- 
Frank

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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] multiple response.menu

2014-03-09 Thread ureal frank
Hi,

I'm very new to web2py.
I've started watching Massimo's vimeo posts and I like what I am seeing, 
even thinking some concepts are little strange at the beginning :)

Well, my 3 questions are:

- Can I define/use multiple menus inside one app?

- While using PostgreSQL or so, can I share the same database between 
different apps? I've made this question because I want somehow to split one 
site in two apps.  The website where users can register for a demo and the 
backoffice, running in a different server where users do their stuff. I 
just want to share the registered users and information like this.
I think CAS could solve this but I am not sure.

- finally (sorry guys): Can I hide the appname from the URL?

I hope to have many more questions :)

Many thanks in advance :)
Frank

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group 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] Book - Overview Typo

2012-08-15 Thread Frank Cheong
Just spotted one typo in the middle of the Overview Chapter inside the 
xmlrpc section, ) is missing at the end of code.


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

service = Service()

@service.xmlrpc
def find_by(keyword):
 finds pages that contain keyword for XML-RPC
 return db(db.page.title.contains(keyword).select().as_list()

def call():
exposes all registered services, including XML-RPC
return service()


whereas the final statement of the function find_by:-

return db(db.page.title.contains(keyword).select().as_list() should be 
replaced by:-

return db(db.page.title.contains(keyword).select().as_list())


-- 





[web2py] response.menu issue

2012-05-20 Thread Frank
hi,all,
hope get help from you, 

{{=('|'.join(A(_[0],_href=_[2]).xml() for _ in response.menu))}} suppose to be
several links on webpage, but it appear to be string on my app, how to change 
it?

thanks,

Frank



[web2py] Re: response.menu issue

2012-05-20 Thread Frank
Anthony,
thanks, 

Frank

On Sunday, May 20, 2012 8:54:49 PM UTC+8, Anthony wrote:

 By calling the .xml() method, you are serializing the A() helper before it 
 gets written to the response body, so the template engine will escape the 
 string instead of inserting it as HTML. To avoid that, wrap the whole thing 
 in XML():

 {{=XML('|'.join(A(_[0],_href=_[2]).xml() for _ in response.menu))}}

 See http://web2py.com/books/default/chapter/29/5#XML.

 Anthony

 On Sunday, May 20, 2012 4:14:58 AM UTC-4, Frank wrote:

 hi,all, 
 hope get help from you, 

 {{=('|'.join(A(_[0],_href=_[2]).xml() for _ in response.menu))}} suppose 
 to be 
 several links on webpage, but it appear to be string on my app, how to 
 change it? 

 thanks, 

 Frank 



[web2py] Re: Need help with drag-n-drop using jQuery

2012-01-20 Thread Frank Hall
The best I can come up with so far is my use of a generic view (I'm just 
getting into this web app stuff). I suspect that I need to elaborate 
index.html. Sound right?
Here's my code:


Control -- dispatch_board.py and default.py

#---
# Name:dispatch_board
# Purpose:
#
# Author:  Frank Hall
#
# Created: 26/12/2011
# Copyright:
# Licence: your licence
#---
#!/usr/bin/env python

import re
import pickle

def quote(text):
return str(text).replace('\\', '').replace(', \\')

def valid_key(key):
return re.match('L\d+D\d+', key)

def load_key(row, col):
return 'L%sD%s'%(row, col)

def jq_cmd(key, value):
return jQuery('#%s').val('%s'); % (key, quote(value))

class Node:

def __init__(self, name, value, size=4, url='.', readonly=True):
self.name = name
self.value = value
self.size = size
self.url = url
self.readonly = readonly

def xml(self):
return input name=%s id=%s value=%s size=%s
onfocus=ajax('%s/focus',['%s'], ':eval');
onmouseup=ajax('%s/mouseup',['%s'], ':eval'); %s/
 % (self.name, self.name, self.value, self.size,
   self.url, self.name, self.url, self.name,
   (self.readonly and 'readonly ') or '')

def __repr__(self):
return self.value


class DispatchBoard:

def dumps(self):
return pickle.dumps(self)

@staticmethod
def loads(data):
return pickle.loads(data)

def load_row_col(self, key):
if key == '':
(row, col) = (-1, -1)
else:
(row, col) = key[1:].split('D')
return (int(row), int(col))

def get_load_value(self, row, col):
key = load_key(row, col)
return self.nodes[key].value

def set_load_value(self, row, col, value):
key = load_key(row, col)
self.nodes[key].value = value
jquery = jq_cmd(key, value)
return jquery

def delete_load(self, row, col):
rnew = self.rows - 1
r = row
jquery = ''
while r  rnew:
value = self.get_load_value(r + 1, col)
jquery += self.set_load_value(r, col, value)
r = r + 1
jquery += self.set_load_value(r, col, '')
return jquery

def insert_load(self, row, col, value, after = False):
rnew = row
if after:
rnew = rnew + 1
r = self.rows - 1
jquery = ''
while r  rnew:
value_move = self.get_load_value(r - 1, col)
jquery += self.set_load_value(r, col, value_move)
r = r - 1
if r == rnew:
jquery += self.set_load_value(r, col, value)
return jquery

def move_load(self, from_row, from_col, to_row, to_col, after = False):
value = self.get_load_value(from_row, from_col)
jquery = self.insert_load(to_row, to_col, value, after)
jquery += self.delete_load(from_row, from_col)
return jquery

def mouseup(self, key):
if (self.drag_key != '')  (key != self.drag_key):
(from_row, from_col) = self.load_row_col(self.drag_key)
(to_row, to_col) = self.load_row_col(key)
jquery = self.move_load(from_row, from_col, to_row, to_col)
else:
jquery = ''
self.drag_key = ''
return jquery

def focus(self, key):
self.drag_key = key

def process(self, callback_args):
##call this in action that creates table, it will handle ajax 
callbacks
func = callback_args['func']
key = callback_args['key']
if func == 'focus':
return self.focus(key)
elif func == 'mouseup':
return self.mouseup(key)

def cell(self, key, value, size=4, readonly=True):
##key is the name of the cell
##value is the initial value of the cell.
if not valid_key(key):
raise SyntaxError, Invalid cell name: %s % key
self.nodes[key] = Node(key, value, size, self.url, readonly)

def xml(self):
import gluon.html
(DIV, TABLE, TR, TD, TH, BR) = \
(gluon.html.DIV, gluon.html.TABLE, gluon.html.TR, gluon.html.TD,
 gluon.html.TH, gluon.html.BR)
xml_board = DIV(TABLE( \
TR(TH(),*[TH('Driver %s' % c) \
 for c in range(self.cols)]), \
*[TR(TH('Load %s' % r), \
*[TD(self.nodes[load_key(r, c)]) \
 for c in range(self.cols)]) \
 for r in range(self.rows)])).xml()
return xml_board

def __init__(self, rows, cols, size=4, url='.', readonly=True):
self.rows = rows
self.cols = cols
self.size = size
self.url = url
self.nodes = {}
self.error = 'ERROR: %(error

[web2py] Need help with drag-n-drop using jQuery

2012-01-17 Thread Frank Hall
I'm prototyping a scheduling board with drivers in the columns and their 
deliveries in the rows to prove that I can reassign deliveries using 
drag-n-drop under web2py. I have developed a matrix of movable cells that I 
based on Massimo's Excel Spreadsheet module. I can drag-n-drop cells just 
fine, but the performance is hideous. The drop takes 10 seconds typically. 
I must be missing some configuration item or something; I just can't make 
the thing work with a speed that will interest my boss. Can anyone suggest 
where I might look to make things snappy? My code is simple and short ( 
200 LOC). Might it have anything to do with the ram-cache? I appreciate any 
help you can offer to get me moving again (and to escape being forced to 
develop our board on Alpha5 or Servoy instead). Thanks in advance.

[web2py] log in issue with client tools, Mr freeze or anyone can help?

2011-12-30 Thread Frank
I've been using same log in module with web2pyslices for a long time
and it works perfectly, but recently, I got log in issue after I
upgrade to 1.99.4(I used to work well on 1.91.6), when you register a
new user then log off, when you log in again, there are error
information liketype 'exceptions.KeyError' 'registration_id',I
download the source code from web2pyslices, and test on 1.99.4, I got
same issue, can anyone help on this? I can not figure out what cause
this due to changes happen from 1.91.6 to 1.99.4 for web2py, it same
break my program.


[web2py] Re: log in issue with client tools, Mr freeze or anyone can help?

2011-12-30 Thread Frank
you can download source code from http://www.web2pyslices.com/faq and
test on 1.99.4


[web2py] Re: log in issue with client tools, Mr freeze or anyone can help?

2011-12-30 Thread Frank
I will do it thank you.

On Dec 31, 9:15 am, Bruno Rocha rochacbr...@gmail.com wrote:
 I did not updated the current web2pyslices website because I am developing
 a new one based on my new CMS.

 recently the registration_id field is now required by Auth but your table
 does not have it.

 Simply add to your auth_user table a new field called registration_id, you
 can do using extra_fields

 --

 Bruno Rocha
 [http://rochacbruno.com.br]


[web2py] Re: icon in menu

2010-09-05 Thread Frank
thanks for your feedback,

after remove the comma, still get same error,
Traceback (most recent call last):
  File C:\web2py\gluon\restricted.py, line 184, in restricted
ccode = compile2(code,layer)
  File C:\web2py\gluon\restricted.py, line 171, in compile2
return compile(code.rstrip().replace('\r\n','\n')+'\n', layer, 'exec')
  File C:/web2py/applications/www/models/menu.py, line 63
]
^
SyntaxError: invalid syntax

this error happen after I change 'title' to
TAG[''](IMG(_src=URL(request.application,'static','home.png'),'title').

if I change back, it will be fine.

Frank
 





[web2py] Re: icon in menu

2010-09-05 Thread Frank
thanks for your feedback, you are absolutely right because web2pyis python
based. please refer to my message replying to annet, it shoulb be web2py
related. please advise what I have to deal with the problem, thanks you.

Frank  






[web2py] Re: icon in menu

2010-09-05 Thread Frank
thanks for your feedback,it's 6 to 6, it is nothing wrong with ]. please refer
to my reply to annet, it should be web2py related.

thanks again,
Frank 





[web2py] Re: icon in menu[close]

2010-09-05 Thread Frank
if I change
to(TAG[''](IMG(_src=URL(request.application,'static','home.png')),'title')),
it's ok.

Frank



[web2py] icon in menu

2010-09-04 Thread Frank
hi,

I have code,
response.menu_index = [
   
[TAG[''](IMG(_src=URL(request.application,'static','home.png'),'title'), False,
URL(request.application,'default','facepda'),
 [
[T('login'), False,
URL(request.application,'default','user/login')],
[T('retrieve password'), False,
URL(request.application,'default','user/retrieve_password')]]
],
   ]

and get this error,

Traceback (most recent call last):
  File C:\web2py\gluon\restricted.py, line 184, in restricted
ccode = compile2(code,layer)
  File C:\web2py\gluon\restricted.py, line 171, in compile2
return compile(code.rstrip().replace('\r\n','\n')+'\n', layer, 'exec')
  File C:/web2py/applications/www/models/menu.py, line 59
],
^
SyntaxError: invalid syntax

it will be great if somebody advise me to figure out the problem.

thanks,

Frank



[web2py] image tabs problem

2010-09-04 Thread Frank
Now, I'm trying the image tabs, I have some findings want to confirm with
others, when I use six to seven image tabs, it's no error showing in WAMP, but
if I run the program in web2py eviroment, very strange, the images tabs shows
random numbers of image tabs, it rarely show all the image tabs. each time, it
may show different image tabs.
I just rise the problem for you. do you have same problem and why?rocket server
or cache? 

Frank



[web2py] High memory usage of web2py

2010-08-11 Thread Frank Church
I just started web2py on Linux, using the web2py.py command and memory used
by the process is already 126K.

What is wrong, how can it be reduced?

-- 
Frank Church

===
http://devblog.brahmancreations.com


Re: [web2py] High memory usage of web2py

2010-08-11 Thread Frank Church
On 11 August 2010 15:38, Thadeus Burgess thade...@thadeusb.com wrote:

 There is the ability to reduce memory usage however. Web2py likes to
 call the import_all module when it first loads up. This basically
 imports every web2py module so they are loaded into the python
 interpreter. That means when your code actually imports anything from
 gluon, the web server won't have to devote the resources to actually
 importing that module when a client requests a page. If you comment
 out the calls to the import_all module, it will reduce the initial
 memory usage.


Sorry I mean't Mb, 126M, and it doesn't look right to me

I run it by using ./web2py.py.



--
 Thadeus





 On Wed, Aug 11, 2010 at 9:32 AM, Thadeus Burgess thade...@thadeusb.com
 wrote:
  Thats less than a MB. I don't see why you are complaining =P
 
  Typically my web2py instances all run around 75MB, with a max of 150MB
  under heavy traffic load.
 
  It also depends on how much your caching or how big your select queries
 are.
 
  --
  Thadeus
 
 
 
 
 
  On Wed, Aug 11, 2010 at 8:20 AM, Frank Church vfcli...@gmail.com
 wrote:
  I just started web2py on Linux, using the web2py.py command and memory
 used
  by the process is already 126K.
 
  What is wrong, how can it be reduced?
 
  --
  Frank Church
 
  ===
  http://devblog.brahmancreations.com
 
 




-- 
Frank Church

===
http://devblog.brahmancreations.com


Re: [web2py] Re: High memory usage of web2py

2010-08-11 Thread Frank Church
On 11 August 2010 16:31, mdipierro mdipie...@cs.depaul.edu wrote:

 It is typical. It can be reduced. Somewhere there was a thread about
 it.


Is this the one you are referring to -
http://www.mail-archive.com/web2py@googlegroups.com/msg35056.html?

If web2py is not being run in admin or development mode, will the memory
requirements be much better, or even running development with a third-party
web server, like nginx or lighttpd?



 On Aug 11, 9:59 am, Frank Church vfcli...@gmail.com wrote:
  On 11 August 2010 15:38, Thadeus Burgess thade...@thadeusb.com wrote:
 
   There is the ability to reduce memory usage however. Web2py likes to
   call the import_all module when it first loads up. This basically
   imports every web2py module so they are loaded into the python
   interpreter. That means when your code actually imports anything from
   gluon, the web server won't have to devote the resources to actually
   importing that module when a client requests a page. If you comment
   out the calls to the import_all module, it will reduce the initial
   memory usage.
 
  Sorry I mean't Mb, 126M, and it doesn't look right to me
 
  I run it by using ./web2py.py.
 
  --
 
 
 
   Thadeus
 
   On Wed, Aug 11, 2010 at 9:32 AM, Thadeus Burgess 
 thade...@thadeusb.com
   wrote:
Thats less than a MB. I don't see why you are complaining =P
 
Typically my web2py instances all run around 75MB, with a max of
 150MB
under heavy traffic load.
 
It also depends on how much your caching or how big your select
 queries
   are.
 
--
Thadeus
 
On Wed, Aug 11, 2010 at 8:20 AM, Frank Church vfcli...@gmail.com
   wrote:
I just started web2py on Linux, using the web2py.py command and
 memory
   used
by the process is already 126K.
 
What is wrong, how can it be reduced?
 
--
Frank Church
 
===
   http://devblog.brahmancreations.com
 
  --
  Frank Church
 
  ===http://devblog.brahmancreations.com




-- 
Frank Church

===
http://devblog.brahmancreations.com


[web2py] posiible on register form

2010-07-31 Thread Frank
hi,
I just found when I set auth.settings.formstyle = 'divs'in welcome app of
1.81.5,the last line of register form wired change.

it also break my app by changing submit buttom to top of from,when I change back
to 'table3cols', things are fine.

Thanks,

Frank



[web2py] Re: book 3rd edition call of help

2010-07-27 Thread Frank
I think followings are missing after quick screening, hope it help,

a. in access control section, missing description of reset_passward and setting;
b. in service section,missing how reportlab for web2py deal with web2py
pictures,tables and forms and how deal with the reportlab path difference
between web2py and reportlab;

thanks,

Frank




[web2py] Re: questions on groups

2010-07-23 Thread Frank
howesc,

Thanks,

Frank





[web2py] questions on groups

2010-07-22 Thread Frank
I get a problem, after I created a fresh new app,I only add following into 
db.py,
if not auth.id_group(Human Resource): 
group_id11=auth.add_group(role=Human Resource, description=can access the
admin action)
auth.add_permission(group_id11, 'access to manage')

when I run this app, it seem that it run ok for first time, but if run second
time, I got error as followings,

Traceback (most recent call last):
  File C:\web2py\gluon\restricted.py, line 178, in restricted
exec ccode in environment
  File C:/web2py/applications/test/models/db.py, line 78, in module
auth.add_permission(group_id11, 'access to manage')
NameError: name 'group_id11' is not defined

I do not understand, group_id11 should get the value in first run, why it lost
in second run.

please advise,thanks,

Frank




[web2py] Re: need help on managinge passwords by administrator

2010-07-14 Thread Frank
thanks for quick reply.

may be I'm not express myself clearly,key point of the question is how to change
authrization for different groups.I have groups(administrator,department manager
and employee).'adminstrator'  have all rights of auth for every employees in
whole organization;'department manager' can register for all employees in his
department and only can change,retrieve or reset password for 'department
manager' and can not change,retrive or reset password for all employees of this
department;employee can not register but can change,retrieve or reset password
for themselves.
administrator auth management can be done throgh appadmin interface. 
how to disable registration for group 'employee' and enable registration for
group 'department manager'? and is there easy way to manage passwords for each
group and send email by batch for department manager and administrator?
again, many thanks,

Frank










[web2py] Re: need help on managinge passwords by administrator

2010-07-14 Thread Frank
many thanks,you are right,I will try the methods you provided.

Thanks,

Frank
 








[web2py] need help on managinge passwords by administrator

2010-07-13 Thread Frank
I try to manage the users' passwords by administrator,the rules are,
users can not register by themself, only administrator can
register.administrator set the password and send a email to user to provide a
link,user click the link and login with the password that is prvovided in the
email.users can do everingthngs like profile, retrive, change, reset on auth
except registering .
I need your help to find out whether there are easy way to do that and how?
sound like reset or retrieve password process by administrator?
thanks in advance, 
Frank.





[web2py] Re: may be a bug, fail after upgrade

2010-07-12 Thread Frank
I'm not modifying the KPAX, I feel the way of users_group management fit my
need, so I only modified part of users_group access management for my project
management program.

the program works well in 1.74.6 and 1.79.2, but for admin interface, open
database is ok in 1.74.6 but failed in 1.79.2 

Frank






[web2py] Re: may be a bug, fail after upgrade

2010-07-12 Thread Frank
Hi,mdipierro,

really thanks, I will try that.

Frank 








[web2py] db.field.name.represent question

2010-07-12 Thread Frank
hi,
In my model,
db.define_table('task',Field('title'),..)
db.task.title.requires=IS_NOT_EMPTY()
I write following,
db.task.title.represent = lambda
t:A(t,_href=URL(r=request,c='default',f='data/edit/task',args=db.task[t].id))

there are erros in args, for args, I try to get link
default/data/edit/task/task.id.I can not figure it out, please advise.
Frank



[web2py] Re: may be a bug, fail after upgrade

2010-07-11 Thread Frank
I found db.auth_event in admin in my program have same problem in 1.79.2 while
not problem in 1.76.4 and got same error message as following.

Traceback (most recent call last):
  File C:\web2py\gluon\restricted.py, line 178, in restricted
exec ccode in environment
  File C:/web2py/applications/nano/views/appadmin.html, line 136, in module
  File C:\web2py\gluon\globals.py, line 105, in write
self.body.write(xmlescape(data))
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\sql.py, line 1467, in __getattr__
self.__allocate()
  File C:\web2py\gluon\sql.py, line 1462, in __allocate
raise Exception, undefined record
Exception: undefined record

Frank



[web2py] Re: may be a bug, fail after upgrade

2010-07-11 Thread Frank
my model for users_group

db.define_table('users_group',
   Field('name'),
   Field('description','text',default='No group description'),
   Field('owner',db.auth_user),
   Field('company',db.auth_user),
   Field('open','boolean',default=False),
   Field('created_on','datetime',default=timestamp))

db.users_group.company.requires=IS_IN_DB(db,'auth_user.id','%(company_name)s')
db.users_group.name.requires=IS_NOT_EMPTY()
db.users_group.owner.requires=IS_IN_DB(db,'auth_user.id','%(name)s')
db.users_group.access_types=['no','view','join']
db.users_group.public_fields=['company','name','description','open']







[web2py] Re: may be a bug, fail after upgrade

2010-07-11 Thread Frank
after change the db.users_group

I get this error in 1.79.2,

Traceback (most recent call last):
  File C:\web2py\gluon\restricted.py, line 178, in restricted
exec ccode in environment
  File C:/web2py/applications/nano/models/db.py, line 269, in module
db.users_group.access_types.requires=IS_IN_SET(['no','view','join'])
  File C:\web2py\gluon\sql.py, line 1609, in __getattr__
return dict.__getitem__(self,key)
KeyError: 'access_types'

before
when I use 

db.users_group.access_types=['no','view','join'], there are no errors.

I learn this from kpax, it sound access_type and public_fields are attirbute of
db.field, is it?

and still db.auth_event have same problem like I mentioned in last post.

thanks,
Frank




[web2py] may be a bug, fail after upgrade

2010-07-10 Thread Frank
I upgrade web2py from 1.74.6 to 1.79.2,when I click link a
href=/{{=request.application}}/appadmin/indexdatabase/a and choose a
database named users_group to open which works well in 1.74.6, it failed in
1.79.2.please note db.users_group is not empty and the function of program works
well in 1.79.2 but if you goto admin, and open datatbase users_group, it fail,
when open other database, it's fine.

I get folowing error,

Error traceback
Traceback (most recent call last):
  File C:\web2py\gluon\restricted.py, line 178, in restricted
exec ccode in environment
  File C:/web2py/applications/nano/views/appadmin.html, line 136, in module
  File C:\web2py\gluon\globals.py, line 105, in write
self.body.write(xmlescape(data))
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\html.py, line 547, in xml
(fa, co) = self._xml()
  File C:\web2py\gluon\html.py, line 538, in _xml
self.components])
  File C:\web2py\gluon\html.py, line 104, in xmlescape
return data.xml()
  File C:\web2py\gluon\sql.py, line 1467, in __getattr__
self.__allocate()
  File C:\web2py\gluon\sql.py, line 1462, in __allocate
raise Exception, undefined record
Exception: undefined record

what are the possible reasons? or may be a bug.

please advise.

Frank





[web2py] get label in easy way

2010-07-05 Thread Frank
hi,

I want to know if there is a easy way to get the list of labels of db.invoice,

I know that we can do db.invoice.fields to get the list of field names, 

can I do the silmilar thing like db.invoice.labels or
db.invoice.field.labels to get the list of labels?

I try both but fail. please advise.

Thanks,

Frank   



[web2py] Re: get label in easy way

2010-07-05 Thread Frank

many thanks for your help,

Frank



[web2py] web2pyslices password hash method

2010-05-14 Thread Frank
thank you freeze for your slices code,

now I try hash my password like you did in slices, copy clienttools.py to
cd/modules folder,I use the code in def user in default.py and def
clientcrypt_auth in db.py like below,but fail, I can register user but password
was not hashed in database and still plain text. when I log out, I can not login
again with the register one. what I missed in this? 

please advise. Frank

def user():
if maint_mode and not 'logout' in request.args:
session.flash = Site is read-only for maintenance.
redirect(URL(r=request,f='index'))
if request.args: 
response.statusbar = request.args(0).replace(_, ).capitalize()
form = handler = None
if not session.token:
import uuid
session.token=str(uuid.uuid4())
auth.settings.login_methods = [clientcrypt_auth(db,session.token)]
page.include(http://plugins.jquery.com/files/jquery.sha256.min.js.txt;,
 download=True,filename=jquery.sha256.min.js)
if request.args(0) == 'register':
setpass = jq(#auth_user_password).val(jq().sha256hmac(
  jq(#auth_user_username),
  jq(#auth_user_password))
)()
setverify = jq(input[name='password_two']).val(jq().sha256hmac(
  jq(#auth_user_username),
  jq(input[name='password_two'])) 
)()
handler = setpass + setverify

if request.args(0) == 'login':
auth.settings.captcha = None
form=auth()   
hdn = INPUT(_type=hidden,_name=token,_value=session.token)
form.components.append(hdn) 
setpass = jq(#auth_user_password).val(jq().sha256hmac(
  jq(#auth_user_username).val().toLowerCase(),
  jq(#auth_user_password)) 
)() 
setagain = jq(#auth_user_password).val(jq().sha256hmac(jq(hdn),
 jq(#auth_user_password)) 
 )()  
handler = setpass + setagain
 
if request.args(0)== retrieve_password and request.vars.email:
user = db(db.auth_user.email== request.vars.email).select()
if user: 
user=user[0]
t = auth.settings.table_user
t.password.requires = CRYPT(key=user.username,digest_alg=sha256)

if request.args(0)==change_password and auth.is_logged_in(): 
form=auth()   
hdn = INPUT(_type=hidden,_name=username,_value=auth.user.username)
form.components.append(hdn)
setold = jq(#no_table_old_password).val(jq().sha256hmac(
  jq(hdn),
  jq(#no_table_old_password)) 
)()
setnew = jq(#no_table_new_password).val(jq().sha256hmac(
  jq(hdn),
  jq(#no_table_new_password)) )()
setverify = jq(#no_table_new_password2).val(jq().sha256hmac(
jq(hdn),
jq(#no_table_new_password2)) 
  )()
handler = setold + setnew + setverify   
 
if not form: form=auth()
if handler:  event.listen(submit,form, handler )
return dict(form=form)


from applications.cd.modules.clienttools import *
page = PageManager(globals())
event = EventManager(page)
js = ScriptManager(page) 
jq = JQuery 

def clientcrypt_auth(db, key):
def clientcrypt_login_aux(username, password, db=db, key=key):   
user = db(db.auth_user.username == username).select()
if user: 
user=user[0]
userpass_crypt, error =
CRYPT(key=key,digest_alg=sha256)(user.password)
if request.vars.password==userpass_crypt: return True 
return False
return clientcrypt_login_aux



[web2py] Re: web2pyslices password hash method

2010-05-14 Thread Frank

I have jquery, jquqery.idtabs and calendar.js, not sha256.

Frank




[web2py] Re: web2pyslices password hash method

2010-05-14 Thread Frank

like you did, I do following code in def user, and the jquery.sha256.min.js file
are properly downloaded. the passward box does not fill up by masked ch like
your slices code.

page.include(http://plugins.jquery.com/files/
 jquery.sha256.min.js.txt,
  download=True,filename=jquery.sha256.min.js)

what you mean is that I need include sha256 in view file again?

Frank



[web2py] Re: web2pyslices password hash method

2010-05-14 Thread Frank

and more I use following in def user in default.py, it's same.
page.include(URL(r=request,c='static',f='jquery.sha256.min.js'))

Frank




[web2py] Re: web2pyslices password hash method

2010-05-14 Thread Frank
you are pefectly right, I include below in web2py_ajax.html

{{=page.render()}}

it's ok now, thank you very much.

Frank





[web2py] Re: web2pyslices password hash method

2010-05-14 Thread Frank
you are pefectly right, I include below in web2py_ajax.html

{{=page.render()}}

it's ok now, thank you very much.

Frank







[web2py] web2pyslices hacked or problem?

2010-04-02 Thread Frank
I'm just curious and kindly want to remind logo problem at this moment, is that
a problem or website was hacked or website is supposed to do so?

Frank

-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: web2pyslices hacked or problem?

2010-04-02 Thread Frank
Frank thethinkbo...@... writes:

 
 I'm just curious and kindly want to remind logo problem at this moment, is 
 that
 a problem or website was hacked or website is supposed to do so?
 
 Frank
 

very strange, this only happen in Firefox not in IE 8 and Chrome.my firefox is
3.6.2.
I can not post picture in this list but logo is a basketball player now.
is same problem from other people? 

Frank



-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: web2pyslices hacked or problem?

2010-04-02 Thread Frank
Hi, Freeze,

my ping results which is normal:

C:\Documents and Settings\Administratorping www.web2pyslices.com

Pinging web2pyslices.com [76.73.68.69] with 32 bytes of data:

Reply from 76.73.68.69: bytes=32 time=216ms TTL=53
Reply from 76.73.68.69: bytes=32 time=220ms TTL=53
Reply from 76.73.68.69: bytes=32 time=217ms TTL=53
Reply from 76.73.68.69: bytes=32 time=219ms TTL=53

Ping statistics for 76.73.68.69:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 216ms, Maximum = 220ms, Average = 218ms

I look into web2pyslices since begining of this website which I think quite
userful, only today, the logo is strange.

Frank
 

-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: web2pyslices hacked or problem?

2010-04-02 Thread Frank
hi, freeze,

it goes away after I delete the cache of firefox, it really wired that I do not
know why, it only happen in web2pyslices.com not other sites and I never see
this basketball player before.

sorry for bothering you for my own troble.

Frank




-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: Dream Host Deployment

2010-03-07 Thread Frank Church
Unless you are on a Private Server you will not be able to use other
ports besides port 80 nor should you be able to.

Dreamhost IS shared hosting. An non standard ports are killed by
Dreamhost once they are spotted

On 7 March 2010 02:33, Jesse joda...@gmail.com wrote:
 Fabulous,

 That seemed to do the tricked.

 Dreamhost seems to be a bit touchy on which ports you I can use to run
 web2py on. (ie none of 8000, 8001, 8080, 8081, etc seemed to work)
 But I just picked a random number and it seems to work like a charm.

 I'll have to add this to Dreamhost's wiki.

 Thanks a bunch,
 Jesse

 On Mar 6, 7:04 pm, Kuba Kucharski kuba.kuchar...@gmail.com wrote:
 let's get you through it.

 for development I use two instances of web2py.

 one:

 python web2py.py -i public_ip -p 80 -a 

 two:

 python web2py.py -i public_ip -p 8001 -a password

 one instance serves my beta testers and users, the second on runs just for me

 then I do:

 ssh -L 8001:127.0.0.1:8001 k...@server

 and type 127.0.0.1:8001 in my browser. I promise you it will work.

 the first 8001 is my local port on my desktop
 the :127.0.0.1:8001 part is where I estabilished my web2py instance on
 the server. that is all.

 happy hacking.

 --
 Kuba

 --
 You received this message because you are subscribed to the Google Groups 
 web2py-users group.
 To post to this group, send email to web...@googlegroups.com.
 To unsubscribe from this group, send email to 
 web2py+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/web2py?hl=en.





-- 
Frank Church

===
http://devblog.brahmancreations.com

-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: powered by drupal?

2010-02-11 Thread Frank Church
I think you should have more appreciation for Massimo, he probably has
enough on his hands without trying to herd cats as well.

As he says, everyone can create their documentation, and he will link
to it .The community itself can have a central page where they are all
linked to.

On 11 February 2010 11:56, selecta gr...@delarue-berlin.de wrote:
 Just my 2 cents:
 Any site documenting/hosting a web2py community should be web2py, I
 don like google groups i don't like the idea of joining in a non
 web2py wiki.
 I can see it is easier and makes even more sense to reuse something
 good but if the docu/community platform isn't a web2py show-off then
 people will think web2py is crap (I would)
 Web2py is great for building social network sites, the docu even go a
 simple wiki example, come on it cant be that hard, anything else is
 embarrassing!

 But yes we need something fast. To be honest what got me started with
 web2py was some googeling an a nice rapidshare link. By now I've
 bought the book but if i wouldn't have had google and rapidshare i
 might have never discovered the wonderful world of web2py.

 And one more thing
 WHY ON EARTH IS WEB2PY NOT ON PYPI??? Do I have to make an entry or
 are you going to do that massimo? -http://pypi.python.org/
 pypi?:action=register_form

 fyi: in one of my web2py projects a colleague of mine is developing a
 simple mailing-list software, hopefully we will release it some day
 soon and somebody will improve it to get rid of this google group. I
 don't like the layout, the lack of options, lack of text highlighting,
 breaking of code examples ...

 if I hurt somebody's feelings I apologize, just wanted to add my 2
 cents

 On Feb 10, 4:59 pm, Jonathan Lundell jlund...@pobox.com wrote:
 On Feb 10, 2010, at 12:07 AM, Anand Vaidya wrote:

  Is moin with RST or markdown fine with you? It seems to work fine and 
  looks great with a theme such as Moniker theme ...

  If there are about 10 people on this list willing to try out moin or 
  Drupal,  we can form a group and start work... and wait no more...Let's 
  stop discussing and get something done!

 I'd be willing to give moin a shot. But as has been pointed out, it doesn't 
 have section editing. That in itself I can live with (I'd rather not, but 
 then I'd rather that pages didn't grow so long that it becomes crippling), 
 but it seems to have been on their wishlist for the last 5 years without 
 getting implemented, and that worries me about the project in general.

 It doesn't bother me that the w2p wiki has rough edges, only that it tends 
 to languish without improvement.

 --
 You received this message because you are subscribed to the Google Groups 
 web2py-users group.
 To post to this group, send email to web...@googlegroups.com.
 To unsubscribe from this group, send email to 
 web2py+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/web2py?hl=en.





-- 
Frank Church

===
http://devblog.brahmancreations.com

-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] typos in CRM

2010-01-20 Thread Frank
hi, 
I do know whether somebody mention it, just a remind that there are typos in CRM
example,
def calendar():
..
   tasks=db(db.task.created_by==auth.user.id)\
   (db.task.start_time=request.now).select() 
...   

should be 
 tasks=db(db.task.created_by==auth.user.id)\
   (db.task.start_time=request.now).select() 
...   

it's same typo in list_tasks action,

frank

-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[web2py] Re: how to custimize the submit button in auth form

2010-01-10 Thread Frank

thanks ,mr.freeze,
the method you provide request customized form with SQLFORM.factory.
what  about the default auth form just like login, register, password forms?
those forms use {{=form}}. can we still use method form.element to change
submit button to image button? I try it but failed.

by the way, how to internationatinalize the change password form? I can do it by
using T method for other forms, but can not translate the change password form.
I'm sure there  should be better way.

Frank



-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[web2py] Re: how to custimize the submit button in auth form

2010-01-10 Thread Frank
mr.freeze nat...@... writes:

 
 You are probably getting an error because the auth function is
 disabled or the mailer is not set and form=auth() is returning an
 empty string.  You can avoid the error with a simple test:
 
 def user():
 form=auth()
 if form:
 submit = form.element(input,_type=submit)
 submit[_type] = image
 submit[_src] = URL(...)
 return dict(form=form)

really appreciate, it works now when I use {{=form}}. 
Still if I use response.write(auth_login()), the submit button still keep
unchanged, is here any solution?

Frank



-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[web2py] how to custimize the submit button in auth form

2010-01-09 Thread Frank
I'm try to customize the submit button in auth form to an image button such as
login, register and retrived password forms etc, what is the better way to do
it, is that form.element or something like that?

thanks,

Frank

-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[web2py:37884] internatinalization for auth fields

2009-12-27 Thread Frank
regarding default auth fields, we can use
{{if not auth.is_logged_in():response.write(auth.login())}} as login form, you
will see field names like username, password etc in login form in English, we
want translate field names of login form into other languages, T method is not
the solution obviously. if we do not want to customize login form, is there
better way to do that translation?

thanks,

Frank




 

--

You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




Re: [web2py:37912] Re: internatinalization for auth fields

2009-12-27 Thread Frank
mdipierro mdipie...@... writes:

 
 db.auth_user.password.label=T('The Password')
 
 --
 
it works, thanks,
Frank





--

You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[web2py:37827] Happy Holidays

2009-12-25 Thread Frank
Hi, everybody,
I wish all members and your families Happy Holidays and Happy New Year with
greetings from China,  wish web2py has a brilliant fiuture!

Frank Wen 


--

You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[web2py:30486] Re: Jpolite testing on Web2py

2009-09-09 Thread Frank

hi, mr. freeze,
sorry for late response, thanks for your feedback, I will try it. and
hope your more insight.

Frank


On 9月9日, 上午10时16分, mr.freeze nat...@freezable.com wrote:
 Frank,
I think you will need to create your own login form that has
 class='ajaxform1'.  That is howjPoliteknows to serialize the form
 fields and send them back to the server when you hit submit.  I'm not
 sure on the other issues.  I'm going through the code right now so I
 will let you know if I find anything.

your On Sep 8, 3:46 pm, Frank thethinkbo...@gmail.com wrote:

  any ideas or help?

  Frank

  On 9月8日, 下午10时49分, Frank thethinkbo...@gmail.com wrote:

   Thanks to the web2py app ofjpoliteprovided by mdipierro, I tested
   thejpolitein web2py, please help me solve following issues,
   a. login problem.
   I put {{if not auth.is_logged_in(): response.write(auth.login())}} in
   m101, when I try to log in with existing username and password, I
   failed. i can not figure out reason. when I put same outside the
   windows, it works fine.
   b. Control in tabs system ofjpolite
   injpolitetabs system, I try to dynamically render/control the
   content of selected window from other one injpoliteby using web2py,
   I can not dynamically for example render/control m102 from m101 menu
   by using web2py in tabs system.  now what I can do just likejpolite's
   examples to control or update static htmls in c2. also I can do above
   control without tabs system for example if only m101 and m102 windows
   in place ( control m102 from m101 menu dynamically).
   c. multiple controls in tabs system
   furthermore, is it a way to do multiple controls, for example, from
   m101 control m102, meanwhile, from m201 control m202, from m301 conrol
   m302 etc?

   thanks in advance,

   Frank

   On 8月28日, 下午12时57分, Frank thethinkbo...@gmail.com wrote:

Hi, I'm pretty new to web2py and do some testing, I try to develop
some test app. now, I try to testJpoliteon web2py, get thejpolite
work on web2py, I know web2py somewhere have this experimental stuff,
could anyone advise me where to find the experimentaljpoliteon web2py
(source code)?

thanks in advance.

Frank- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:30406] Re: Jpolite testing on Web2py

2009-09-08 Thread Frank

Thanks to the web2py app of jpolite provided by mdipierro, I tested
the jpolite in web2py, please help me solve following issues,
a. login problem.
I put {{if not auth.is_logged_in(): response.write(auth.login())}} in
m101, when I try to log in with existing username and password, I
failed. i can not figure out reason. when I put same outside the
windows, it works fine.
b. Control in tabs system of jpolite
in jpolite tabs system, I try to dynamically render/control the
content of selected window from other one in jpolite by using web2py,
I can not dynamically for example render/control m102 from m101 menu
by using web2py in tabs system.  now what I can do just like jpolite's
examples to control or update static htmls in c2. also I can do above
control without tabs system for example if only m101 and m102 windows
in place ( control m102 from m101 menu dynamically).
c. multiple controls in tabs system
furthermore, is it a way to do multiple controls, for example, from
m101 control m102, meanwhile, from m201 control m202, from m301 conrol
m302 etc?

thanks in advance,

Frank


On 8月28日, 下午12时57分, Frank thethinkbo...@gmail.com wrote:
 Hi, I'm pretty new to web2py and do some testing, I try to develop
 some test app. now, I try to testJpoliteon web2py, get thejpolite
 work on web2py, I know web2py somewhere have this experimental stuff,
 could anyone advise me where to find the experimentaljpoliteon web2py
 (source code)?

 thanks in advance.

 Frank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:30423] Re: Jpolite testing on Web2py

2009-09-08 Thread Frank

any ideas or help?

Frank

On 9月8日, 下午10时49分, Frank thethinkbo...@gmail.com wrote:
 Thanks to the web2py app ofjpoliteprovided by mdipierro, I tested
 thejpolitein web2py, please help me solve following issues,
 a. login problem.
 I put {{if not auth.is_logged_in(): response.write(auth.login())}} in
 m101, when I try to log in with existing username and password, I
 failed. i can not figure out reason. when I put same outside the
 windows, it works fine.
 b. Control in tabs system ofjpolite
 injpolitetabs system, I try to dynamically render/control the
 content of selected window from other one injpoliteby using web2py,
 I can not dynamically for example render/control m102 from m101 menu
 by using web2py in tabs system.  now what I can do just likejpolite's
 examples to control or update static htmls in c2. also I can do above
 control without tabs system for example if only m101 and m102 windows
 in place ( control m102 from m101 menu dynamically).
 c. multiple controls in tabs system
 furthermore, is it a way to do multiple controls, for example, from
 m101 control m102, meanwhile, from m201 control m202, from m301 conrol
 m302 etc?

 thanks in advance,

 Frank

 On 8月28日, 下午12时57分, Frank thethinkbo...@gmail.com wrote:

  Hi, I'm pretty new to web2py and do some testing, I try to develop
  some test app. now, I try to testJpoliteon web2py, get thejpolite
  work on web2py, I know web2py somewhere have this experimental stuff,
  could anyone advise me where to find the experimentaljpoliteon web2py
  (source code)?

  thanks in advance.

  Frank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:30454] Re: jpolite ajax form bug

2009-09-08 Thread Frank

hi, mr.freeze and  mdipierro,

could you give me your insight on my post Jpolite testing on Web2py?

http://groups.google.com.tw/group/web2py/browse_thread/thread/5c28475deefbaa6f/aac851e084f95e82?lnk=gstq=jpolite#aac851e084f95e82

copy as following for your convenient,

Thanks to the web2py app of jpolite provided by mdipierro, I tested
the jpolite in web2py, please help me solve following issues,
a. login problem.
I put {{if not auth.is_logged_in(): response.write(auth.login())}} in
m101, when I try to log in with existing username and password, I
failed. i can not figure out reason. when I put same outside the
windows, it works fine.
b. Control in tabs system of jpolite
in jpolite tabs system, I try to dynamically render/control the
content of selected window from other one in jpolite by using web2py,
I can not dynamically for example render/control m102 from m101 menu
by using web2py in tabs system.  now what I can do just like jpolite's
examples to control or update static htmls in c2. also I can do above
control without tabs system for example if only m101 and m102 windows
in place ( control m102 from m101 menu dynamically).
c. multiple controls in tabs system
furthermore, is it a way to do multiple controls, for example, from
m101 control m102, meanwhile, from m201 control m202, from m301 conrol
m302 etc?

thanks in advance,

Frank

On 9月9日, 上午6时43分, mr.freeze nat...@freezable.com wrote:
 Here you go:http://web2py-jpolite.googlecode.com/files/web2py.app.jpolite.w2p

 This includes the ajax form fix.  Let me know if there are any other
 outstanding bugs.

 On Sep 7, 11:28 pm, mdipierro mdipie...@cs.depaul.edu wrote:

  You can do that or setup a repository somewhere (google code) and I
  will just link it from appliances:

  I encourage other users to adopt an appliance in the same way.

  Massimo

  On Sep 7, 10:02 pm, mr.freeze nat...@freezable.com wrote:

   Sure.  How should I send you updated versions? Email?

   On Sep 7, 9:56 pm, mdipierro mdipie...@cs.depaul.edu wrote:

I had not looked at this.

Want to be a maintainer for this until a new version comes out (and
perhaps later too)?

On Sep 7, 9:50 pm, mr.freeze nat...@freezable.com wrote:

 Massimo, you may have already figured this out but just in case...The
 response needs to be rendered before sending back to the client:

 def m502():
 form=FORM(INPUT(_type='text',_name='a',_class='integer',
 requires=IS_INT_IN_RANGE(-100,100)),
   '+',INPUT(_type='text',_name='b',_class='integer',
 requires=IS_INT_IN_RANGE(-100,100)),
   '=',INPUT(_type='submit'),_class='ajaxform1')
 if form.accepts(request.vars,session):
 a=int(form.vars.a)
 b=int(form.vars.b)
 return response.render('default/m502.html', form='%i + %i =
 %i' % (a,b,a+b))
 print request.vars
 return dict(form=form)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:29566] Jpolite testing on Web2py

2009-08-28 Thread Frank

Hi, I'm pretty new to web2py and do some testing, I try to develop
some test app. now, I try to test Jpolite on web2py, get the jpolite
work on web2py, I know web2py somewhere have this experimental stuff,
could anyone advise me where to find the experimental jpolite on web2py
(source code)?

thanks in advance.

Frank

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:29580] Re: Jpolite testing on Web2py

2009-08-28 Thread Frank

Hi, Yarko,

thanks, it works.

Frank

On 8月28日, 下午2时02分, Yarko yark...@gmail.com wrote:
 Hi Frank -

 Go tohttp://www.web2py.com/jpolite

 There you will see a download tab.  I'm not sure if Massimo is working
 on a new version (I know jpolite was going thru some updates, and we
 were waiting on that to finish; not sure if it did, or if anyone here
 had time to check it out).

 Regards,
 - Yarko

 On Aug 27, 11:57 pm, Frank thethinkbo...@gmail.com wrote:

  Hi, I'm pretty new to web2py and do some testing, I try to develop
  some test app. now, I try to test Jpolite on web2py, get the jpolite
  work on web2py, I know web2py somewhere have this experimental stuff,
  could anyone advise me where to find the experimental jpolite on web2py
  (source code)?

  thanks in advance.

  Frank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---