[web2py] Re: reCaptcha chrome ssl not visible

2013-05-30 Thread Tim Richardson
I guess this is what the use_ssl parameter is for. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, v

[web2py] Re: reCaptcha chrome ssl not visible

2013-05-30 Thread Tim Richardson
discussion upstream: https://groups.google.com/forum/?fromgroups#!topic/recaptcha/JWLOfSH_FaM " Insufficient information to say for sure, but it sounds like you're using the old recaptcha.net URL's instead of google.com - see http://code.google.com/p/recaptcha/wiki/FAQ#I%27m_getting_certificat

[web2py] reCaptcha chrome ssl not visible

2013-05-30 Thread Tim Richardson
I've followed the book and added reCaptcha to logins. But in Chrome over https the recaptcha is hidden. works in firefox. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, s

Re: [web2py] Re: What is best practice to give a user administrator rights for one application (to manage users)

2013-05-30 Thread Tim Richardson
vars=dict(send=URL(args=request.args, > vars=request.vars > > with something like: > > if not auth.has_membership(role="admin"): redirect(.) > > > > On Wednesday, 29 May 2013 22:52:40 UTC-5, Tim Richardson wrote: >> >> I want to

[web2py] What is best practice to give a user administrator rights for one application (to manage users)

2013-05-29 Thread Tim Richardson
I want to give a user the ability to add users for one application. I have created a group called admin, made her a member, and decorated the index function in controller appadmin @auth.requires_membership('admin') Then I have added a link to the index function of the appadmin controller. I a

[web2py] Re: web2py view to controller value passing and vice versa

2013-05-29 Thread Tim Richardson
how to get the returned value in view again?? > > > The view is executed by the server, so variables included in the view are provided by the web2py server process executing code at the time the content is sent to the browser; you are returning a value via ajax which sends it to the client (th

[web2py] Re: How can I suppress the login menu for a given controller?

2013-05-15 Thread Tim Richardson
Thanks Massimo. After looking at layout.html I decided to hide it with CSS embedded in

[web2py] How can I suppress the login menu for a given controller?

2013-05-15 Thread Tim Richardson
For one controller I would like not to show the login menu. How can I do this? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegr

[web2py] Re: SQLFORM.grid seems to overwriting an unshown field.

2013-05-03 Thread Tim Richardson
Solved. My bug. Process of recreating a minimal app revealed that the code which fetches data from a webservice was not doing what I thought. Thanks. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and sto

[web2py] Re: SQLFORM.grid seems to overwriting an unshown field.

2013-05-03 Thread Tim Richardson
nd everytime I dispaly the sqlform.grid, it resets every value in the cm_patient_id column to the default. tomorrow I'll try to make a minimal app. > Anthony > > On Friday, May 3, 2013 10:15:43 AM UTC-4, Tim Richardson wrote: >> >> >> >> On Friday, 3 May 20

[web2py] Re: SQLFORM.grid seems to overwriting an unshown field.

2013-05-03 Thread Tim Richardson
On Friday, 3 May 2013 23:59:51 UTC+10, Anthony wrote: > > How did the record get created to begin with? Did it start with a > cm_patient_id value of 0? Are you sure you committed your change when using > the database management tool? This works: I open up the grid in web2py, and click on the

[web2py] Re: SQLFORM.grid seems to overwriting an unshown field.

2013-05-03 Thread Tim Richardson
e database value is reset in the controller which shows the grid. It is not reset simple because a new request occurs, as far as I can tell. > > Anthony > > On Friday, May 3, 2013 4:15:26 AM UTC-4, Tim Richardson wrote: >> >> I must have missed something. >> >

[web2py] SQLFORM.grid seems to overwriting an unshown field.

2013-05-03 Thread Tim Richardson
I must have missed something. In 2.4.6 I have a MSSQL table with an integer field. When I show the table with SQLFORM.grid, one of the fields is being reset to 0. The definition of this field is Field("cm_patient_id","integer") The table is migrate =False. the SQLFORM.grid is form = SQLFOR

[web2py] is it possible to add an autocomplete widget to the rows of an SQLFORM.grid?

2013-04-29 Thread Tim Richardson
I want to use SQLFORM.grid to show rows of data from one table, and to conveniently allow the user to quickly select a foreign key. The foreign key is a reference field, so it works with a click to edit the row which then opens the detail view. I was hoping to allow an in-line edit. I think I c

Re: [web2py] SQL Server Connection String Please HELP

2013-04-24 Thread Tim Richardson
> > >> b = SQLDB('mssql://username:password@localhost:portnumber/databaseNAME') >> >> Can someone give me a some examples or link to any information where I >> can see how a simple program connects to a SQL SERVER DB and selects a few >> records from a table and displays them... >> >> I h

[web2py] Re: Error messages for a failed insert MSSQL ... where are they?

2013-04-19 Thread Tim Richardson
OK, I'll make sure I can reproduce first. On Friday, 19 April 2013 22:42:03 UTC+10, LightDot wrote: > > Please open a bug report if this still looks like a bug to you... Sure > sounds like one, but since I didn't see the code... > > > -- --- You received this message because you are subscrib

[web2py] Re: Error messages for a failed insert MSSQL ... where are they?

2013-04-19 Thread Tim Richardson
On Friday, 19 April 2013 22:24:23 UTC+10, Willoughby wrote: > > They should show in the ticket under "Error Traceback" > At least they do for me... > > > > On Friday, April 19, 2013 7:14:08 AM UTC-4, Tim Richardson wrote: >> >> I'm trying to i

[web2py] Error messages for a failed insert MSSQL ... where are they?

2013-04-19 Thread Tim Richardson
I'm trying to insert into a MSSQL 2005 database via DAL. The insert fails (because I missed a column non-NULL with no default value). What bothers me a bit is that I don't seem to get an error message anywhere. The insert returns None rather than the ID which makes sense. I see nothing in sql.log.

[web2py] Re: help with css

2013-04-15 Thread Tim Richardson
I have similar behavior in a joomla site using responsive bootstrap CSS. It involves use of the CSS media tag which is a css meta selector based on screen width (invisible to Firebug as far as I could work out). It turns off display of the block containing the menu using CSS properties; I change

[web2py] Re: routes in windows service not working??

2013-04-12 Thread Tim Richardson
possibly another reason to use nssm on windows -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Re: newbie question about digitally signed URLs using hmac

2013-04-10 Thread Tim Richardson
Ah, thank you. I now understand much more about userSignature. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For mor

[web2py] newbie question about digitally signed URLs using hmac

2013-04-10 Thread Tim Richardson
the book has an example to use hmac digitally signed URLs, where the KEY seems to be a global variable, ie always the same. Is this a good idea? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop rece

[web2py] Re: preserve search criteria in sqlform.grid after component reLOAD

2013-04-09 Thread Tim Richardson
Thanks Niphlod, based on that I worked it out. For us mortals, here's how I did it. This is at my level of understanding, not up to one-liners yet :) The view linked to the menu the user clicks on LOADs the sqlform grid controller like so: {{=LOAD('default','order_import_status.load',ajax=Tr

[web2py] preserve search criteria in sqlform.grid after component reLOAD

2013-04-06 Thread Tim Richardson
I have a SQLFORM.grid for a table. The user can modify a boolean flag via an ajax call, which returns javascript causing the grid to reLOAD. When doing the reload, how do I preserve the user's filters (the keywords)? -- --- You received this message because you are subscribed to the Google Gr

[web2py] Re: ajax function in a grid, I'm getting None in a request.vars

2013-03-29 Thread Tim Richardson
So this works as far as getting my database update going: passing args constructed with the URL helper links = [lambda row: INPUT(_name='toggle',_type="submit",_value="Toggle", _onclick="ajax('%s','' ,':eval')" % URL( 'toggle_order_import',args=[row.id]))]) --

[web2py] Re: ajax function in a grid, I'm getting None in a request.vars

2013-03-29 Thread Tim Richardson
On Saturday, 30 March 2013 16:23:26 UTC+11, Tim Richardson wrote: > > I'm trying to learn more about LOAD and ajax. > > I have an SQLFORM.grid loaded as a component. It's read only. > So this means the result is just an HTML table, not a form, so the field name is act

[web2py] ajax function in a grid, I'm getting None in a request.vars

2013-03-29 Thread Tim Richardson
I'm trying to learn more about LOAD and ajax. I have an SQLFORM.grid loaded as a component. It's read only. I've added a button to each row using links = [lambda row: INPUT(_name='toggle',_type="submit",_value="Toggle", _onclick="ajax('toggle_order_import_v2',['id'

[web2py] Re: Rocket server on two ports

2013-03-21 Thread Tim Richardson
8020, only at 8010. On Thursday, 21 March 2013 00:05:00 UTC+11, Tim Richardson wrote: > > The rocket documentation seems to say that the server can be invoked > listening on multiple ports. > I'm using it as http and I'd like to deploy rocket as ssl (self signed). >

[web2py] Rocket server on two ports

2013-03-20 Thread Tim Richardson
The rocket documentation seems to say that the server can be invoked listening on multiple ports. I'm using it as http and I'd like to deploy rocket as ssl (self signed). Then I need to change book marks; running on http and ssl means I can gradually transition. Is this going to blow up? Also,

[web2py] Re: Parent-child model form based on many sqlforms on one page

2013-03-16 Thread Tim Richardson
On Saturday, 16 March 2013 20:29:55 UTC+11, Tim Richardson wrote: > > > > On Saturday, 16 March 2013 19:11:13 UTC+11, Niphlod wrote: >> >> on the ajax/js side code a component and LOAD(ajax=True) multiple >> times with different parameters >> > I w

[web2py] Re: Parent-child model form based on many sqlforms on one page

2013-03-16 Thread Tim Richardson
On Saturday, 16 March 2013 19:11:13 UTC+11, Niphlod wrote: > > on the ajax/js side code a component and LOAD(ajax=True) multiple > times with different parameters ? Perhaps it is time for me learn about this :) The SQLFORM approach gives me all the SQLFORM validation and default widget

[web2py] Parent-child model form based on many sqlforms on one page

2013-03-15 Thread Tim Richardson
I have an application with a parent-child data model where I think sqlform.grid will be a frustrating user interface approach due the number of interactions to edit multiple rows. I'm a former perl programmer, and still lazy. I was wondering about generating an SQLFORM for each row. There may be

[web2py] Re: web2py 2.4.3 is OUT

2013-03-12 Thread Tim Richardson
> > The web page has a new look. I hope you like it. > > When my web2py apps grow up, they want to look like yours. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send a

[web2py] Re: scheduler question, how to use queue_task?

2013-03-07 Thread Tim Richardson
On Thursday, 7 March 2013 21:49:12 UTC+11, Niphlod wrote: > > seems perfectly legit in the snippet, maybe there's something else in your > "complete" code. Can you inspect the errors returned by queue_task (i.e. > print result_ID and see what does it contain) ? > >> >> >> >> My bad. Under the

[web2py] scheduler question, how to use queue_task?

2013-03-07 Thread Tim Richardson
I have an app using the scheduler the old-fashioned way. I have a model which sets up the scheduler. myscheduler = Scheduler(db,dict(import_task_add=import_task_add)) The model also defines the task which the scheduler runs. However, the scheduling of a job is done by a controller, after the use

[web2py] Re: web2py 2.4.2 is OUT

2013-03-05 Thread Tim Richardson
Thanks for 2.4.2. I manually updated on Windows and my apps are all working (although for a couple I needed to delete the scheduler tables and update some queries to new field names, where I had things to monitor jobs ... I look forward to using the new scheduler features). -- --- You receiv

[web2py] Re: web2py 2.4.2 is OUT

2013-03-05 Thread Tim Richardson
On Tuesday, 5 March 2013 07:07:46 UTC+11, Niphlod wrote: > > ps: version check fails because it expects > > version (date) stable/dev > > instead of the current format > > Version 2.4.2 (stable) 2013-03-04 03:26:21 > Is there a quick fix for this (ie a change to 2.3.2)? > > On Monday, March 4,

[web2py] Re: Book 5th edition out

2013-03-05 Thread Tim Richardson
On Wednesday, 6 March 2013 08:02:13 UTC+11, Anthony wrote: > > in HTML: > > >> http://web2py.com/book >> > > This one says it's the 4.9th edition. > It's v5 for me (an hour later) -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To

[web2py] Re: what is the name of an uploaded file using sqlform.factory?

2013-02-21 Thread Tim Richardson
On Friday, 22 February 2013 14:23:23 UTC+11, Massimo Di Pierro wrote: > > Can you explain it again? > > On Thursday, 21 February 2013 06:52:33 UTC-6, Tim Richardson wrote: >> >> Actually, >> the file name works fine when using the name of the field at least in a &

[web2py] Re: what is the name of an uploaded file using sqlform.factory?

2013-02-21 Thread Tim Richardson
Actually, the file name works fine when using the name of the field at least in a string context. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py

[web2py] Re: import track_changes when using sys.path.append to import module in custom location

2013-02-21 Thread Tim Richardson
t has changed, the module will be reloaded. *This applies to all Python modules, even Python modules outside web2py.* > > On Sunday, 10 February 2013 05:48:41 UTC-6, Tim Richardson wrote: >> >> I have 2.3.2 with python 2.7 on Windows. >> >> I'm imp

[web2py] what is the name of an uploaded file using sqlform.factory?

2013-02-20 Thread Tim Richardson
web2py 2.3.2 on windows With this, i can save files form = SQLFORM.factory(Field("Stocktake_date","date"), Field("Description_of_stocktake","string",length= 60), Field('spreadsheet_upload','upload', uploadfolder=os.pa

[web2py] why does this not work f=locals()['IS_IN_SET'] ?

2013-02-18 Thread Tim Richardson
When in interactive mode (python web2py.py -S welcome) I can do this: f = local()['IS_IN_SET'] and I get f as a function variable. But the same thing in a controller fails with a KeyError. [I'm trying to make an SQLFORM.factory form based on queries defined in a table, with SQL, parameters and

Re: [web2py] Re: Unable to send email - password reset.

2013-02-14 Thread Tim Richardson
Some time ago I ran into exactly the same problem and came to the solution exactly the same way (on Windows). The book now includes this setting but perhaps it is too subtle (search TLS). There are a lot of advantages to running debug/development sessions using an interactive web2py server st

[web2py] Re: import track_changes when using sys.path.append to import module in custom location

2013-02-10 Thread Tim Richardson
Too bad no symlinks in windows. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups

[web2py] import track_changes when using sys.path.append to import module in custom location

2013-02-10 Thread Tim Richardson
I have 2.3.2 with python 2.7 on Windows. I'm importing a module from an odd location in the file system, and therefore doing from gluon.custom_import import track_changes; track_changes(True) #while in development sys.path.append('C:\...') # a windows path import mod1#a module in the dire

[web2py] Re: negative ID values in the ID field break use of format in SQLFORM.grid

2013-02-09 Thread Tim Richardson
Thanks Massimo, that works. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.go

[web2py] Re: How can I extend DAL for MySQL REGEXP?

2013-02-08 Thread Tim Richardson
this is good. Massimo, is a new stable release coming soon? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more o

[web2py] Re: field defined as requires IS_IN_SET defaults to blank on sqlform.grid edit

2013-02-07 Thread Tim Richardson
And an espresso later ... the reason is that my table was defined as char(50) not varchar(50), so the values where gettings spaces at the end, and were therefore failing the validation when trying to display the row. -- --- You received this message because you are subscribed to the Google Gr

[web2py] field defined as requires IS_IN_SET defaults to blank on sqlform.grid edit

2013-02-07 Thread Tim Richardson
I have a field defined as Field('item_type','string',requires=IS_IN_SET(['Procedure','Consultation'])) db1.define_table('com_tier1',Field('item_nbr','string'),Field('doctorID','reference doctor'), Field('cmsn_pct','decimal(18,4)',requires = IS_DECIMAL_IN_RANGE(-1,1)), Field('cmsn_set', '

[web2py] negative ID values in the ID field break use of format in SQLFORM.grid

2013-02-07 Thread Tim Richardson
Using 2.3.2 with MSQL, I have a table T1 where the primary key is ID (migrate=false) Most values have ID > 0 but I have two special cases where the ID is < 0 T1 uses format to make a friend display of the primary key. Then this table is referred to in another table T2 using reference. When I u

[web2py] Re: Scheduler Quick question

2013-02-07 Thread Tim Richardson
Well there are definitely some experts here, but this is what I understand: 1) the scheduler should run as a completely detached process. 2) Windows, OS X & linux have ways of doing this via task schedulers or startup scripts (often the task scheduler has an option that means run at startup). Th

[web2py] Re: Scheduler Quick question

2013-02-06 Thread Tim Richardson
On Wednesday, 6 February 2013 23:13:31 UTC+11, Tim Richardson wrote: > > > > On Wednesday, 6 February 2013 02:46:57 UTC+11, Leonel Câmara wrote: >> >> Yes it exists, independently what I want is to stop and relaunch the >> process when the webserver reboots. >

[web2py] Re: Scheduler Quick question

2013-02-06 Thread Tim Richardson
On Wednesday, 6 February 2013 02:46:57 UTC+11, Leonel Câmara wrote: > > Yes it exists, independently what I want is to stop and relaunch the > process when the webserver reboots. Why? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] Re: DAL IntegrityError on MSSQL after upgrade to 2.3.2

2013-02-05 Thread Tim Richardson
> It seems that the newer version of web2py deemed there were some > differences between how the table is defined in the web2py model file and > how it i > > Did the DAL migrate functionality change significantly between version > 1.93.2 and 2.3.2? > Can anyone advise? > > many thanks, > > A

[web2py] Re: Scheduler Quick question

2013-02-05 Thread Tim Richardson
On Tuesday, 5 February 2013 06:34:12 UTC+11, Leonel Câmara wrote: > > Hey, > > I don't know if this is relevant but I'm using webfaction with their > wiki's install script. > > I was wondering what's the easy way to make the new Scheduler run > automatically when my application reboots. >

[web2py] Re: I seem to block the server if I forget about dbg.set_trace

2013-02-01 Thread Tim Richardson
No, I'm wrong, the examples app does appear on the mac, there was a long delay. Sometimes rocket is very slow to respond on the mac. > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving em

Re: [web2py] Re: I seem to block the server if I forget about dbg.set_trace

2013-02-01 Thread Tim Richardson
On Saturday, 2 February 2013 09:42:38 UTC+11, Mariano Reingart wrote: > > Thanks you for reporting it! > > BTW, it should not block other applications, just the thread that is > serving the controller with the breakpoint code. > In fact, admin is just another web2py app, if it works, any other

Re: [web2py] Re: I seem to block the server if I forget about dbg.set_trace

2013-02-01 Thread Tim Richardson
On Saturday, 2 February 2013 08:45:14 UTC+11, Tim Richardson wrote: > > You're right, on my local installation (trunk) I *can* go the admin page > and start a debug listener. > I'll try that on the Windows server. > >> >> Thanks, this works on window

Re: [web2py] Re: I seem to block the server if I forget about dbg.set_trace

2013-02-01 Thread Tim Richardson
You're right, on my local installation (trunk) I *can* go the admin page and start a debug listener. I'll try that on the Windows server. > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receivi

[web2py] Re: I seem to block the server if I forget about dbg.set_trace

2013-02-01 Thread Tim Richardson
This is with rocket (I just run python web2py.py) I just tried it again, with trunk, having changed the index controller on the welcome app [put a dbg.set_trace()] and then starting python web2py.py (this time on my mac, it's not platform dependent) Rocket stalls, we never make it to the welcom

[web2py] Re: I seem to block the server if I forget about dbg.set_trace

2013-02-01 Thread Tim Richardson
Maybe I'm doing something wrong, because I get the same problem on mac with the latest git. I change the welcome app like so from gluon.debug import dbg def index(): """ example action using the internationalization operator T and flash rendered by views/default/index.html or views/g

[web2py] Re: I seem to block the server if I forget about dbg.set_trace

2013-01-31 Thread Tim Richardson
I can reproduce it and I think my observations above are completely correct. So I raised an issue. http://code.google.com/p/web2py/issues/detail?id=1313 -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and

[web2py] Re: I seem to block the server if I forget about dbg.set_trace

2013-01-31 Thread Tim Richardson
atest stable. I'll check more thoroughly and if I'm correct and if I can reproduce it, I'll file a report. On Friday, 1 February 2013 15:07:16 UTC+11, Tim Richardson wrote: > > I use dbg.set_trace for debugging. > Usually I remember to run an instance of web2py on an additiona

[web2py] I seem to block the server if I forget about dbg.set_trace

2013-01-31 Thread Tim Richardson
I use dbg.set_trace for debugging. Usually I remember to run an instance of web2py on an additional port and use that for my debugging. Sometime I forget to remove dbg.set_trace. When I do that, I don't have a listening window open, so I guess rocket stops but there is no one to hear it. I'm on

[web2py] Re: a spreadsheet-like-table for user inserting data

2013-01-31 Thread Tim Richardson
There is a spreadsheet example included in web2py. I haven't used it yet. It sounds like a good place to start. http://www.web2py.com/examples/spreadsheet/index -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this gro

[web2py] Re: temporary tables to easily use native smartgrid with session-specific data?

2013-01-21 Thread Tim Richardson
Thanks again Niphlod; I think this will be a handy technique to have up my sleeve. --

[web2py] temporary tables to easily use native smartgrid with session-specific data?

2013-01-21 Thread Tim Richardson
I want a controller that fetches a user-chosen subset of data via JSON from an external site, and then presents that for review using smartgrids. Being lazy, I could put the fetched data into a couple of tables. There is a one-to-many relationship in the data (orders and order lines). But the fet

[web2py] Re: change string format of date picker

2013-01-17 Thread Tim Richardson
. The jquery docs suggest only javascript can do it. In the end I just used datetime to convert it to a date and back to a string in my required format. > On Wednesday, 16 January 2013 21:24:06 UTC-6, Tim Richardson wrote: >> >> I'm using the date picker in a form by usin

[web2py] Re: change string format of date picker

2013-01-17 Thread Tim Richardson
t; > On Wednesday, 16 January 2013 21:24:06 UTC-6, Tim Richardson wrote: >> >> I'm using the date picker in a form by using _class='date' >> Can I change the format of the string returned? >> >> --

[web2py] change string format of date picker

2013-01-16 Thread Tim Richardson
I'm using the date picker in a form by using _class='date' Can I change the format of the string returned? --

[web2py] Re: rocket can not send email on windows, starttls extension not supported by server

2013-01-07 Thread Tim Richardson
This open source thing could really take off. mail.settings.tls = False does the job --

[web2py] rocket can not send email on windows, starttls extension not supported by server

2013-01-07 Thread Tim Richardson
web2py 2.7.3 on windows, rocket server. I want to setup email for lost passwords and registration. I don't need authentication. I can send email from python (following the example in the 2.7.3 documentation 18.1.1) I've followed the book closely and have the mail server like so: mail=auth.set

[web2py] Re: Installing the book as an app?

2012-12-28 Thread Tim Richardson
On Friday, 28 December 2012 18:56:37 UTC+11, Nico Zanferrari wrote: > > Hello, the right URL is https://github.com/mdipierro/web2py-book.git > ;-)) Ah, that makes quite a difference :) Thanks. git itself doesn't need the .git --

[web2py] Re: Installing the book as an app?

2012-12-27 Thread Tim Richardson
On Friday, 28 December 2012 00:46:05 UTC+11, Massimo Di Pierro wrote: > > You may not have python-git installed. On my mac, I did easy_install gitpython which succeeded. However, loading the book app from the github URL failed with the same message as before. --

[web2py] Installing the book as an app?

2012-12-27 Thread Tim Richardson
With trunk (Version 2.4.1 alpha.2 (2012-12-26 11:54:07) using rocket server on OS X, I'm trying something I've never done before: installing an app from a url. The app I want to install is https://github.com/mdipierro/web2py-book I give it the application name 'book'. It fails with Unable to i

[web2py] Re: The book updates and status

2012-12-23 Thread Tim Richardson
notes. > > On Sunday, 23 December 2012 03:47:43 UTC-6, Tim Richardson wrote: >> >> I hope this is not too late. I find it unclear what should be done when a >> new version of web2py arrives ... What important parts of an application >> are not upgraded when a ne

[web2py] Re: The book updates and status

2012-12-23 Thread Tim Richardson
I hope this is not too late. I find it unclear what should be done when a new version of web2py arrives ... What important parts of an application are not upgraded when a new version of web2py arrives, and how to manually upgrade apps to new features of the scafold app. It would be good if this

[web2py] Re: Running the scheduler as a windows service using nssm

2012-12-17 Thread Tim Richardson
On Monday, December 17, 2012 2:08:29 PM UTC+11, Massimo Di Pierro wrote: > > Agreed. Can you help us write it? I just tried my first "pull request" so you should see that in the web2py-book repository on github. I hope. --

[web2py] Re: Running the scheduler as a windows service using nssm

2012-12-16 Thread Tim Richardson
Thanks for the tips. I've implemented two schedulers. Now I understand the difference between starting the scheduler with 1 app vs > 1 apps. nssm is very easy to use. I think for Windows deployment, running the scheduler as a service would be a very common use-case. Perhaps worthy of a paragra

[web2py] Running the scheduler as a windows service using nssm

2012-12-16 Thread Tim Richardson
I used nssm to create a service which runs a scheduler instance. I'm using AcitveState python 2.7 on a windows 2003 server. I told nssm to run pythonw.exe d:\web2py2x\web2py.py -K app1,app2 The service runs so I guess all is well, and I've made it automatic whch I hope means it comes back after

[web2py] Re: web2py winservice

2012-12-10 Thread Tim Richardson
On Tuesday, 11 December 2012 14:38:47 UTC+11, Massimo Di Pierro wrote: > > Thanks for reporting this. It should not be fixed in trunk and nightly > build. I was unable to test so, please let me know if it works The win2py service installs again. --

[web2py] Re: web2py winservice

2012-12-10 Thread Tim Richardson
Tuesday, 11 December 2012 13:52:37 UTC+11, Tim Richardson wrote: > > It's an ActiveState python installation which includes these extensions. > > On the same machine, I don't get the error with a 2.2.1 source download, > the service installs fine. > > > > On Tues

[web2py] Re: web2py winservice

2012-12-10 Thread Tim Richardson
in 32 extensions. > > On Monday, 10 December 2012 17:59:39 UTC-6, Tim Richardson wrote: >> >> I get an error under windows 7 >> >> python web2py.py -W install >> >> web2py Web Framework >> Created by Massimo Di Pierro, Copyright >> Version 2.3.0

[web2py] Re: web2py winservice

2012-12-10 Thread Tim Richardson
directory (/users/tim) web2py itself launches (ie python web2py works) On Thursday, 6 December 2012 16:57:15 UTC+11, Massimo Di Pierro wrote: > > Yes. Assuming the web2pycronservice works. I write it but did not try, > > On Wednesday, December 5, 2012 6:00:50 PM UTC-6, Tim Rich

[web2py] Re: web2py winservice

2012-12-05 Thread Tim Richardson
On Thursday, 6 December 2012 04:03:41 UTC+11, Massimo Di Pierro wrote: > > I just closed this ticket but could not test it: > > http://code.google.com/p/web2py/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=265

[web2py] Re: missing anything....

2012-11-27 Thread Tim Richardson
Hi Massimo, is a 2.2.x maintenance release pending in the next week? regards Tim On Wednesday, 28 November 2012 03:42:38 UTC+11, Massimo Di Pierro wrote: > > I have been traveling and missed some emails. I am trying to catch up? > Have I missed anything important? --

[web2py] Re: Referring to a table to populate a drop down in a FORM

2012-11-21 Thread Tim Richardson
> I haven't used SQLFORM.factory before. Looks like I lose the functionality > of keepvalues=True > No, I was wrong. if form.process(keepvalues=True).accepted: --

[web2py] Re: Referring to a table to populate a drop down in a FORM

2012-11-21 Thread Tim Richardson
On Wednesday, 21 November 2012 22:56:43 UTC+11, Niphlod wrote: > > SQLFORM.factory(Field('mydropdown', requires=IS_IN_SET(('a','b','c' > Thanks. for my future reference, this code below does exactly what I want. Field('Commission_set',requires=IS_IN_DB(db1,db1.com_general_settings.id,

[web2py] Referring to a table to populate a drop down in a FORM

2012-11-21 Thread Tim Richardson
I have a simple FORM to collect some parameters from the user. I want one of the fields to be populated by values in a table (like the normal dropdown on an SQLFORM). I bet there is an easy way to do this, but I haven't found it. --

[web2py] Re: Web2Py and MS Access

2012-11-16 Thread Tim Richardson
Humour me back ... download SQL Server express edition and the accompanying SQL Server Management Studio (Express edition) and have a look at it. It runs well on Windows 7 & XP desktops. People could also recommend postgres, but for getting up and running quickly, and for its very friendly mana

[web2py] Re: Web2Py and MS Access

2012-11-16 Thread Tim Richardson
On Friday, 16 November 2012 20:32:23 UTC+11, Simon Carr wrote: > > Which SQL Standard? :) But seriously, the SQL you develop to get anything working with Access will be unusually idiosyncratic. I have bad memories ... --

[web2py] Re: Web2Py and MS Access

2012-11-15 Thread Tim Richardson
Your experience with MS Access will not be good I think. It doesn't even pretend to support SQL standards as far as I remember, and you'll have a very difficult time getting support. The advice to consider the free edition of SQL server is something you should look at. You get nice management

[web2py] Re: How to open a ticket on the web2py itself?

2012-11-14 Thread Tim Richardson
On Thursday, 15 November 2012 01:22:46 UTC+11, Massimo Di Pierro wrote: > > > http://code.google.com/p/web2py/issues/list > > I agree this should be more prominent in the web site. > +1 :) --

Re: [web2py] Re: web2py as Windows service

2012-11-14 Thread Tim Richardson
> use something external, web2py binary and services doesn't really get > along. I use personally the http://nssm.cc/ package and I'm really happy > with that. > I "voted" for removing services support within web2py, the code (as all > code around windows services with python programs) is a c

[web2py] Re: Placing the database of a web2py app on the cloud

2012-11-14 Thread Tim Richardson
I'm curious about why you wouldn't not just deploy the app on the EC2 instance? --

Re: [web2py] Re: web2py as Windows service

2012-11-14 Thread Tim Richardson
n Linux (archlinux), > with web2py version 2.2.1 and Python 2.7.3 . > > Can I help more? > > I wish you a wonderful day. > David > > > On 14 November 2012 03:27, Tim Richardson > > wrote: > >> what kind of Windows is it? How did you install Python, and which >> distribution is it? >> Is your Web2py a source code install, or the .exe install? >> >> -- >> >> >> >> > > --

[web2py] Re: web2py as Windows service

2012-11-13 Thread Tim Richardson
what kind of Windows is it? How did you install Python, and which distribution is it? Is your Web2py a source code install, or the .exe install? --

[web2py] Re: How to create long running tasks?

2012-11-02 Thread Tim Richardson
On Thursday, 1 November 2012 23:50:16 UTC+11, Richard Penman wrote: > > Would be great to use the new scheduler but doesn't seem applicable in > this case. I have no difficulty starting these processes. > > As described in OP, the problem is these are child processes which makes > them dependen

[web2py] Re: Multiprocessing in a controller ?

2012-10-22 Thread Tim Richardson
Thanks. I'll use the scheduler. Using multiprocess seemed like it may be a cool solution for the purpose of quickly using an existing python script, but the problems seemed to multiply pretty quickly. I ran out of mental cores. > > > --

<    1   2   3   4   5   6   >