[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-26 Thread Rufus
I'm new to web2py but since I have an iphone I've been interested in the mobile view/standard view capability of web2py so I've been watching this thread. Could you possibly generalize display devices even more, to even provide per-user or per-session "skinning" of the web page, storing the displa

[web2py] wiki.web2py.com seems pretty broken

2011-07-27 Thread Rufus
Is the wiki still actively supported in any way? I found a problem in a tutorial and wanted to make a correction, but I couldn't edit it (not being registered) I tried to register as a new user, and I kept getting "invalid" when entering a new user password. Also none of the links work on the fr

[web2py] I keep getting "Invalid Circular Reference" using Project Wizard!

2011-07-28 Thread Rufus
cular Reference" or if I skip to generate, I get a runtime error. Any clues? Rufus

[web2py] Re: I keep getting "Invalid Circular Reference" using Project Wizard!

2011-07-28 Thread Rufus
I'll prefix all my field names in the wizard to avoid that keyword problem and see what happens. On Jul 28, 12:25 pm, Anthony wrote: > On Thursday, July 28, 2011 11:53:47 AM UTC-4, pbreit wrote: > > > I think field name "type" could be a problem. > > I'm not sure -- I think the wizard will end up

[web2py] Re: I keep getting "Invalid Circular Reference" using Project Wizard!

2011-07-28 Thread Rufus
re which I had tried. It just wasn't very clear what the "Circular Reference" was referring to in the flash-up. Rufus P.S. I was trying to edit out those prefixes out of the generated files and found out what a nightmare it is trying to change a field name manually. On Jul 28

[web2py] Re: proper way to define a user table

2011-08-03 Thread Rufus
th_user']. Once created, > you should be able to add additional fields via append(). > > Anthony If you are trying to append to a list, or create it if it's not present, don't you want to do it this way? try: auth.settings.extra_fields['auth_user'].append(Field('Skype')) except: auth.settings.extra_fields['auth_user'] = [Field('Skype')] Rufus

[web2py] Re: Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Rufus
I just recently started with web2py, and found that it is a pretty big elephant that is hard to eat a bite (byte?) at a time, precisely because everything's included. Even a simple app gets and incredible amount of scaffolding. I routinely delete the languages directory, as I don't need the clutt

[web2py] Re: routes.py and rewriting URLs

2011-08-15 Thread Rufus
7;, 'admin/courses'),) print "routing lists initialized..." --- and it would be in your web2py directory. (...time passes, trying it out) I discovered one other thing! If you edit routes.py, SHUTDOWN AND RESTART WEB2PY! The rou

[web2py] Creating local standalone program importing web2py models files?

2011-08-19 Thread Rufus
the web2py framework, using the same model files as used by the framework, so the program looks somewhat like: ### some kind of path setups import db # get database connection import pbdb # get table definitions db.employee.insert(last_name="Smith", first_name="Rufus") db.commit() -- Thanks

[web2py] Re: How to return a gif image onto the webpage?

2011-08-22 Thread Rufus
What have you tried? Have you ever gotten *any* graphic image onto a web page with web2py? I'd start with a known image at a known location. and for debugging purposes, I'd add to your default/index.html a line that said Image from url: {{=image}} Just to make sure I passed the right URL to the

[web2py] Re: Useful validators IS_LETTERS, IS_DIGITS

2011-08-31 Thread Rufus
Since the two functions are subsets of IS_ALPHANUMERIC(), I'd suggest that the sub-functions be named: IS_ALPHA() and IS_NUMERIC() On Aug 28, 2:56 pm, Jonathan Lundell wrote: > On Aug 28, 2011, at 11:23 AM, Saurabh Sawant wrote: > > > They seem fine. Although, having ready to use validators wou

[web2py] Saving Site or App specific data: Use a special db table with one huge record?

2011-09-07 Thread Rufus
For site persistant data, is it customary to put it in a database table with one large record? There are some statistical things I'd like to keep track of on the site. Is it standard practice to define one data table that has one large record containing the information?, for instance: Number v

[web2py] Re: form.accepts returning false

2011-09-07 Thread Rufus
d no error, submitted w/ error Rufus

[web2py] Is there a way for the editor pages to prevent navigation away while the source changes are not saved?

2011-09-13 Thread Rufus
nvironment has! Also, with the source in another editor, there's still the problem of forgetting to save it prior to running the next test. Rufus

[web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread Rufus
As others have said, setting response.view='...' to any view will change the view for the controller. In fact, you could go crazy and put a view dictionary in session, e.g. if "my_controller" in session.views.remap: response.view = session.views.remap["my_controller"] each multi-view control

[web2py] Re: What if i want 2 views for the same controller function?

2011-09-13 Thread Rufus
In fact, view reselect might be nicely handled in a decorator function! Just decorate those functions that require multiple views (like mobile versus normal) It could modify the view name for the correct view file.

[web2py] OpenLayers and Web2Py

2011-10-05 Thread Rufus
Has anyone created a Web2Py Python wrapper for OpenLayers? I searched in the slices, and in the plugins, and in the discussions. And the last activity was a couple years ago. I'd like to not have to pay the Google Tax.\ Rufus

[web2py] Re: IMPORTANT

2011-10-13 Thread Rufus
tweet" (140 chars), or even a half-tweet, to be excessively verbose. If have a larger message, make your signature a hyperlink to the full text and save some bandwidth. Rufus

[web2py] Re: looking for volunteers to help proof-read book 5th ed.

2013-01-26 Thread Rufus
backward compatibility in future versions. Mostly quite minor, but there it is. Keep up the excellent work, and I'm ready to buy the next copy as soon as it's available! Rufus --

Re: [web2py] Re: looking for volunteers to help proof-read book 5th ed.

2013-01-26 Thread Rufus
On Saturday, January 26, 2013 12:25:41 PM UTC-5, rochacbruno wrote: > > I think both are bad! specially by the fact that the largest web2py > audience is not native English speaker, this kind of sentence should be > more explicit. > > "web2py takes care of main security issues, so developers ha

Re: [web2py] Re: How do I use web2py to make a simple GUI?

2013-01-26 Thread Rufus
On Friday, January 25, 2013 10:39:52 AM UTC-5, Alec Taylor wrote: > > On Fri, Jan 25, 2013 at 1:59 AM, Alan Etkin > > wrote: > >> Hi, the answer to this question may well be that I should leave web2py > >> alone and use something else, so I had better start > > > > Note that there's a specia

[web2py] Re: How do I use web2py to make a simple GUI?

2013-01-27 Thread Rufus
To quickly learn some html and css, I recommend the exercises at www.codeacademy.com Not perfect, but useful. --

[web2py] Re: How to use a text file instead of a db?

2013-02-11 Thread Rufus
And if you don't need the layout (by returning a dict), just return the file contents: def showfile(): return (open("filename.ext","r").read()) -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and st

[web2py] Re: web2py is moving

2013-03-01 Thread Rufus
Disruption: The book link is broken. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https:/

Re: [web2py] routes, removing appname and controller from all links

2013-03-01 Thread Rufus
# As simple as this? (I'm new too) routes_in = ( ('/$anything', '/myapp/default/$anything'), ) routes_out = ( ('/myapp/default/$anything', '/$anything'), ) -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from th

[web2py] Re: custumize error page

2013-03-01 Thread Rufus
routes.example.py is very helpful for this (I was tempted to add another hint, butnah.) On Friday, March 1, 2013 9:48:06 AM UTC-5, BlueShadow wrote: > > Hi, > I like to make my errorpages a little nicer. adding a link to get back to > my main site... and displaying the error code 400 404 et

[web2py] Re: pySerial - how to open port

2013-03-29 Thread Rufus
Perhaps it is already open by another process? I'm not a major linux user (yet) but in windows only one process can open the serial port at a time. Perhaps "Permission denied" is the same as "In use". Also make sure you close it when, if your application doesn't terminate, as web2py doesn't, d

[web2py] Re: Excellent Video about web2py but no sound or subtitles

2013-04-17 Thread Rufus
I'm only 5 minutes into it, and I had to reply! It is great to be "watching over the shoulder" of a person who knows what he (or she) is doing! I can't wait to watch the rest -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubs

[web2py] Re: GoogleGroup - how do you keep track of useful code?

2013-08-28 Thread Rufus
If you use windows, you can open a folder on your desktop and drag-and-drop the links into it. (if you trust that the snippet will always be available in the 'net) I have several folders-of-shortcuts on my desktop by categories, e.g.: Current Projects, Diversions, Past Projects, Python Sites, et

Re: [web2py] Python Module, USB device, web2py

2013-09-10 Thread Rufus
Where did the thread go? A general comment: If you can do it in Python, you can do it in web2py. (in my limited experience.) On Tuesday, September 10, 2013 7:58:41 PM UTC-4, viniciusban wrote: > > It depends. > > Is you multimeter in the same computer your web2py instance is running? > > On T

[web2py] Re: Jessica McKellar talking about windows and the future of Python

2013-09-16 Thread Rufus
Good presentation. But I misread Bruno's post originally and thought that Jessica mentioned web2py, and watched the whole presentation and didn't see any web2py specific comments. (because it was actually Bruno's comment) I came back here to ask for the comment timestamp in the video, and rer

[web2py] Re: error : socket.gethostbyname(http_host)] : gaierror: [Errno -2] Name or service not known

2016-02-28 Thread Rufus
I installed web2py on a remote ubuntu server 14.04 with Webmin package from APT function and the same error is happening for me. I'll print the contents of http_host to check the value. Never mind, I just saw the APT function installed web2py 1.99.7 (2012-03-04). I imagine a couple things hav

Re: [web2py] Re: develop iphone apps with web2py with this plugin

2014-04-10 Thread Rufus
The domain name in the link here expired a month ago (March 8, 2014). Figures. On Sunday, July 1, 2012 7:27:32 AM UTC-4, samrat kafle wrote: > > I tried this but not worked well I am searching a complete guide for > developing iphone apps and i have found one cool articles which i recommend

[web2py] unable to install application "KPAX"

2014-04-10 Thread Rufus
I tried to load the KPAX2 example app from: https://github.com/mdipierro/web2py-appliances/blob/master/KPax2/web2py.app.KPax2.w2p and I it kept telling me: unable to install application "KPAX" I don't know where to look for further details about WHY? Rufus (I trie

[web2py] Re: unable to install application "KPAX"

2014-04-10 Thread Rufus
, April 10, 2014 2:30:05 PM UTC-4, Rufus wrote: > > I tried to load the KPAX2 example app from: > > > https://github.com/mdipierro/web2py-appliances/blob/master/KPax2/web2py.app.KPax2.w2p > > and I it kept telling me: > > unable to install application "KPAX" > >

[web2py] Re: unable to install application "KPAX"

2014-04-10 Thread Rufus
Well, Couldn't even open default/index: there was a problem with foreign keys right off the bat. Modified the model to ignore the foreign key constraint, for better or worse. Then I found out the layout.html does not handle the nested menu created in menu.py. (All this because I w

[web2py] Adding fields to auth_user (and creating alternate username validation)

2014-04-21 Thread Rufus
Still a noob, but starting to actually use web2py, and getting hands dirty: I am working on an actual web2py project (low-bandwidth word game back-end logic), and I'm finding as I make incremental changes I hit potholes on the way. I have some users who are going to the website to downloa

[web2py] Can I simulate multiple user logins to web2py from a single computer?

2014-05-04 Thread Rufus
, but would be useful for testing if it could be overridden, even temporarily. Rufus -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received thi

[web2py] Setting up wiki is not as simple as stated in default.py

2014-05-16 Thread Rufus
I wanted to create a wiki on PythonAnywhere, so I did the most straightforward thing. I went to my site manager, said create simple app. MyWiki. edited default.py and changed the index controller to: return auth_wiki() save and view got: 401 UNAUTHORIZED any clues? -- Resources: - http

[web2py] Re: Setting up wiki is not as simple as stated in default.py

2014-05-17 Thread Rufus
idn't automatically set up those groups. I think a one-sentence additional comment in default.py should mention these additonal requirements. (or refer to the documentation in the manual). (And yeah, the underscore in "auth_wiki()" was just a posting typo, of course) Rufus On Satu

[web2py] Re: How to organize the model for a chat application?

2014-06-03 Thread Rufus
If you don't want to create group authentication, and playing with a single registration view different types of users. I wonder if you could have the users log into to a completely different app, if all it was for was for the chat. It is possible to share databases between web2py application

[web2py] Re: How do I iterate over imported methods in a list?

2014-07-10 Thread Rufus
On Thursday, July 10, 2014 12:17:25 PM UTC-4, Maurice Waka wrote: > > in my web2py app, i created this code that works well in python shell. > > python modules: > #The methods work in such a way that a user inputs an equation query to > get an answer. If it is an addition, method1 works it out,

[web2py] Re: Alternative IDEs?

2014-07-19 Thread Rufus
You might want to check out PyAlaMode, the multifile editor that comes with wxPython. I think it has autocomplete, and could be made web2py friendly. The sources are all there, of course. The original developer's website www.orbtech.com has gone away, apparently, but the code remains in the wx

[web2py] Re: Login restricted based on subscription

2014-08-13 Thread Rufus
On Tuesday, August 12, 2014 4:28:11 PM UTC-4, Kenneth wrote: > > Hello everyone, > > I'm building a site that clients subscribes to so I need to limit their > login based on the subscription. Is there a built in feature to limit login > to a date range? > > > Kenneth > > Can't your successful log

[web2py] Re: windows script to run locally

2013-10-15 Thread Rufus
This looks great! I'm not using web2py at this time, due to other projects, but I can see this script in my future, so I'm saving it! Thanks Niphlod! On Saturday, October 12, 2013 8:08:47 AM UTC-4, Niphlod wrote: > > no need... there's taskkill... > > @echo off > set QCURDIR=%~dp0 > set QWEB

[web2py] Re: Need more than one value to unpack

2014-01-10 Thread Rufus
so, the string object, val is not composed of two substrings separated by a space. There are no spaces in the val string, based on that error. The way the statement looks, I would say it is expecting a time string of the format: dd/mm/yy hh:mm or similar On Tuesday, January 7, 2014 1:10:45

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

2014-09-16 Thread Rufus
PythonAnywhere is a friend of web2py and gives you all the information to host a web2py server on the website. Or explain your question better. You don't host PythonAnywhere - PythonAnywhere hosts you. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

[web2py] Re: web2py and security

2014-11-22 Thread Rufus
What aspect of security are you concerned about? Are you asking how to configure web2py for maximum security? Are there aspects of the security model you feel need boosting? Have you read the manual about web2py and security? I'm not an expert, but as I understand it, security was one of the prime

[web2py] Re: Any way for placing many views in one html file?

2015-01-05 Thread Rufus
It has been a while since I did anything with web2py, but I seem to recall that if you didn't have a view for a function it would open up a default view, which is also in a file. (Was it generic.html?) Anyway, the point being you might want to use that for your "catch all" file instead of cre

[web2py] Re: Can we disable moderation in the group?

2015-03-10 Thread Rufus
(Must be those Django fanboys trying to disrupt the site!) On Tuesday, March 10, 2015 at 10:39:46 AM UTC-4, Massimo Di Pierro wrote: > > We only moderate the first post. We get lots of spam. > > On Friday, 6 March 2015 20:12:30 UTC-6, Jack Kuan wrote: >> >> I don't see the need and think it can

[web2py] Re: Need help displaying value from the controller to view

2015-04-11 Thread Rufus
Just return it as a dictionary value: def index(): return dict(message='LED Test - Main Menu',pinstatus=GPIO.input(22)) You should be able to figure out how to display it in the view on your own. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-05 Thread Rufus
On Friday, June 5, 2015 at 3:35:08 PM UTC-4, Niphlod wrote: > BTW: until all snippets are continously tested, this is going to become > the 4th incarnation of a "web2py snippet blog/container/etc" with outdated > pieces of code within the next year, when the buzz wears off. > Nothing worse than

[web2py] Re: Hosting my web2py application

2020-10-28 Thread Rufus
There is at least one good tutorial on YouTube about setting up a private home webserver on a Raspberry Pi, including how to create a Dynamic DNS entry with Google. Here's One: https://www.youtube.com/watch?v=vzojwG7OB7c&t=1415s On Tuesday, October 27, 2020 at 11:44:30 AM UTC-4 mostwanted wrot

[web2py] Re: Hosting my web2py application

2020-11-03 Thread Rufus
The technique we used with PHP was the php would call the python program (or any other program callable from the linux shell) and take the output from it or the files generated by it using PHP. This is not the same as generating web pages using python, or modifying the HTML to include python cod

[web2py] Re: Remote access appadmin

2012-12-22 Thread Rufus
I started up a brand new install of the latest stable web2py on my laptop: Version 2.3.2 (2012-12-17 15:03:30) stable Running on my home network @ 192.168.1.68:8000 I can open Safari on my iphone and enter: http://192.168.1.68:8000 and get the welcome screen for Web2py.If I press the "adm

Re: [web2py] routes, removing appname and controller from all links

2013-03-01 Thread Rufus Smith
:( Can anyone help me with this? I still have not resolved this issue. On Friday, March 1, 2013 5:49:46 PM UTC-5, Rufus wrote: # As simple as this? (I'm new too) routes_in = ( ('/$anything', '/myapp/default/$anything'), ) rout

Re: [web2py] Re: Can I simulate multiple user logins to web2py from a single computer?

2014-05-05 Thread Rufus Smith
Hi Robert, I noticed that! I fired up Chrome, and it started a different session. Haven't tried with IE, and until now haven't worked with Safari on my desktop. (but on my iphone, yeah). As the project gets closer to a beta stage, I'll look at compatibility... Rufus O

Re: [web2py] Re: web2py and security

2015-02-11 Thread Rufus Smith
I am not too active or up to date on security, I assume you already looked at: http://www.web2py.com/book/default/chapter/01#Security and at the end of the section it referenced generic python security here: http://www.pythonsecurity.org/ Rufus On 2/11/2015 8:23 AM, James O' Dri