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
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
cular Reference" or if I skip to generate, I get a
runtime error.
Any clues?
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
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
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
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
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
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
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
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
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
d no error, submitted w/
error
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
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
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.
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
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
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
--
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
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
To quickly learn some html and css, I recommend the exercises at
www.codeacademy.com
Not perfect, but useful.
--
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
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:/
# 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
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
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
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
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
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
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
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
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
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
, 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"
>
>
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
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
, 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
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
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
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
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,
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
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
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
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
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.
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
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
(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
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
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
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
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
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
:(
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
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
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
58 matches
Mail list logo