Hi ,
I followed http://web2pyslices.com/main/slices/take_slice/76 to run web2py
on hostmonstor , I believe it should be a similar setup for hostgator .
You can check my sample site at http://web2py.igurukul.net/newsfeed
Thanks
-Syed
On Sun, May 15, 2011 at 12:59 AM, pepe_eloy wrote:
> Hello!
>
Two spaces at the end of a line makes a new line in Markdown... would it be
possible to have the same behavior in Markmin?
On 17 May 2011 04:09, Bruno Rocha wrote:
> On Mon, May 16, 2011 at 11:34 PM, JayShaffstall wrote:
>
>> Just enough of rain
>> To bring the smell of silk
>> From umbrellas
>>
All right, I will start replying one by one.
1) Organizations tips: at cubrid.org there are two search engines, one
of which is a subset of the other.
a) cubrid.org search -
http://www.cubrid.org/?vid=&mid=home&act=IS&is_keyword=AUTO_INCREMENT
It has quite advanced search engine powered by nLuce
You could make them readable=False, writable=False
http://web2py.com/book/default/chapter/06#Record-Representation
Or customize the form. I have customized all of the forms in my app (
http://pricetack.com ):
http://web2py.com/book/default/chapter/07#Custom-forms
I need to add some fields to my auth form and remove some, but in
customizing auth, there is a caveat that no fields can be removed only
added to, but I do not need most of the default fields. How do I go
about this?
>
>
>
>
>
>
>
> On Monday, May 16, 2011 5:41:29 PM UTC-4, Pystar wrote:
> > Hi guy
fair enough. thanks for the clarification. i'll validate before i call the
method.
cfh
Esen,
I would like to know whats the grand key features of Cubrid over Mysql or
Postgres, I am interested in this project but I have a simple question "why
should I use Cubrid instead of Mysql or Postgres ?"
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
It is a feature. validators apply to forms, not database access.
On May 16, 9:42 pm, howesc wrote:
> is it a bug or a feature that when i call get_or_create_user that the
> field's validators are not called when creating a new user? I have a place
> where i would like them to be, but i'm not sur
Hello Esen,
it should be very easy for us to suport cubrid and I like the support
for sequence types. But we need some information that is not in the
online manual (at least I could not find it).
How do I define a table with an autoincrement integer field?
How do I get the 'id' of the last insert
On Mon, May 16, 2011 at 11:34 PM, JayShaffstall wrote:
> Just enough of rain
> To bring the smell of silk
> From umbrellas
>
You can do that in this way:
--- Create a custom markmin dictionary ---
customtags = dict(
br=lambda n:''*int(n),
template=lambda code:gluon.templ
Hi,
I work at the CUBRID DBMS Project. I will be glad to respond to your
questions, if you any particular.
In general, CUBRID is an open source relational database management
system available on Linux and Windows platforms. CUBRID Manager, its
most powerful database administration tool, is also a
is it a bug or a feature that when i call get_or_create_user that the
field's validators are not called when creating a new user? I have a place
where i would like them to be, but i'm not sure if that should be my
responsibility before i call get_or_create_user(), or if i should expect
get_or_
On Monday, May 16, 2011 10:34:11 PM UTC-4, JayShaffstall wrote:
>
> On May 16, 4:30 pm, Massimo Di Pierro
> wrote:
> > form=SQLFORM(...)
> > form.element('textarea')['_rows'] = random.randint(10,20)
>
> Thanks! I'll give that a try tomorrow.
Yes, check out
http://web2py.com/book/default/
On May 16, 4:30 pm, Massimo Di Pierro
wrote:
> form=SQLFORM(...)
> form.element('textarea')['_rows'] = random.randint(10,20)
Thanks! I'll give that a try tomorrow.
> In markmin there are no line breaks. Just paragraphs. You have to set
> the distance between paragraphs in CSS.
That only works
I think you should be able to do this:
auth.settings.login_url=URL('user.html', args='login')
By default, Auth.url() just passes through the extension of the original
request. That can be useful for login-protected components because it will
call 'user.load' instead of 'user.html' if the co
What version of web2py are you using?
Massimo solved an issue with recaptcha, so if you have old version you need
to update or change the recaptcha API url in your your code.
For me it is working now:
http://www.web2pyslices.com/main/default/user/register
--
Bruno Rocha
[ About me: http://zerp.ly
Anybody experienced enabling recaptcha via:
recaptcha = Recaptcha(request, recaptcha_public_key,
recaptcha_private_key)
auth.settings.register_captcha = recaptcha
And after creating the keys it works for a day. Next day the recaptcha
frame is gone.
What I do is to check on the generated html and
I'm still struggling with how to deploy cron in production.
I currently have a crontab on my production server set up with:
0-59/1 * * * * cd /var/web2py && python web2py.py -C -D 1 >>
/tmp/cron.output 2>&1
And a couple tasks in my web2py crontab:
*/1 * * * * root *cron/email_watchlist
0 2 * *
Vineet,
We're doing the same in a different client server environment.
Lots of business logic, 700+ tables, 10,000+ tasks to translate.
We intend writing a high level tool as a web2py code generator, that
will serve as a gateway between the 2.
However we're probably at a lower level on the learnin
Hey, quick question: One of my controllers has a request that uses the
@auth.requires_login handler.
Problem is, when I go there and use an extension (examples: /init/
default/dothis.json, /init/default/dothis.txt), I get redirected to
the extension version of the login page by default (/init/defa
Yes, I think that would be a good idea. Maybe there is already a
similar way to do that?
On May 17, 12:38 am, pierreth wrote:
> Would it be better as a command line argument for webp2y.py?
> Something like:
> python web2py.py --debug
> ?
If the database is complex (or may become more so in future) then why
not use Sql. It's just safer and more flexible.
GAE is great as a free way of dishing up views of single tables. With
a few extra feeds here and there.
Plus, whenever I have had a complex system and compromised (by
denormalisi
Vineet,
Agreed, the temp file should be in the DAL.
I don't see at this stage why it would be break the logic.
On May 17, 5:47 am, Vineet wrote:
> Simon,
> I thought on the idea of adding a MySQL temp table to manage insert/
> del/update on multiple tables.
> But there would be a large no. of su
Also, I think at some point in the near future, GAE is supposed to be
offering a MySQL option.
Anthony
On Monday, May 16, 2011 7:29:47 PM UTC-4, howesc wrote:
> Marek,
>
> did you see google's announcements last week? sometime this summer they
> will offer app engine with SLA and all the rea
Would it be better as a command line argument for webp2y.py?
Something like:
python web2py.py --debug
?
Marek,
did you see google's announcements last week? sometime this summer they
will offer app engine with SLA and all the real stuff that production
likes...
i have interchanged in testing web2py code on GAE and RDBMS. though once i
get into it i do my database layout differently and write m
See the very bottom, I am so used to emacs keystrokes, that I
accidentally posted this before I was done. :(
Similar code works for update too.
Jay
On May 16, 6:33 pm, Jay wrote:
> Vineet,
>
> I wonder if this is what you want?
>
> I use this all the time. I have company info in a table and add
Vineet,
I wonder if this is what you want?
I use this all the time. I have company info in a table and address in
another, and my form contains company and address fields.
db.define_table('company',
Field('name'),
Field('addressid', db.address),
migrate='company.table')
db.define_ta
Hi Vineet,
If you already wrote the app in Foxpro then it should be much easier
to port. Take each Foxpro screen and make something similar in
Web2py?
I appreciate that might sound too facile, but when you tell me what's
wrong with that idea, I might be able to see better where your
difficulty l
oops. Thanks. This is a trunk only bug. I now fixed it.
On May 16, 4:42 pm, pbreit wrote:
> I think there's a tiny typo in the new security check in admin/access.py.
> Should be "is_https", correct?
>
> if request.env.http_x_forwarded_for or request.is_http:
>
> session.secure()http://code.g
You might not need to subclass Auth to do that. Instead, you might be able
to alter the form returned by Auth via the server-side DOM (e.g.,
http://web2pyslices.com/main/slices/take_slice/43).
Anthony
On Monday, May 16, 2011 5:41:29 PM UTC-4, Pystar wrote:
> Hi guys,
>
> I would like to kn
Oops, my bad. Sorry about that.
I was probably mis-thinking about having them at the same level. This might
make the logi more difficult or impossible.
if form_car.accepts(request.vars, session, dbio=False):
do something
if form_customer.accepts(request.vars, session, dbio=False):
do s
If you're going to store them in the DB then Customizing Auth is easiest:
http://web2py.com/book/default/chapter/08#Customizing-Auth
Subclassing is going to be more difficult.
In a model file that comes before "auth =" do this:
from gluon.tools import Auth
class MyAuth(Auth):
def navbar(s
Has anyone come across this DB? Seems like it might be big in Korea. The
screen shots of the manager app looks interesting.
http://www.cubrid.org/home
I think there's a tiny typo in the new security check in admin/access.py.
Should be "is_https", correct?
if request.env.http_x_forwarded_for or request.is_http:
session.secure()
http://code.google.com/p/web2py/source/browse/applications/admin/models/access.py#13
Hi guys,
I would like to know how to subclass the Auth class and add additional
fields to the login form.
thanks
LOL,
Some retro action...
This is a fairly rough implementation of S5 into a Web2py application
with an 'extra'.
Eventually I, or someone else (you?) will get around to giving is some
love, perhaps creating a db for slides, updating and so on.
In the mean time I could not resist the temptation
I have not closely followed this thread so I am missing something but
this:
if form_car.accepts(request.vars, session, dbio=False):
if form_customer.accepts(request.vars, session, dbio=False):
do something
will not work because you cannot have nested accepts.
On May 16, 3:51 pm, pbre
There might have been some confusion. You don't have to break your form or
pages into multiple steps. But you can break the code in your controller
into different steps. One controller can work with multiple tables.
You can do stuff like:
form_car = SQLFORM(db.car)
form_customer = SQLFORM(db.cu
Dear Massimo,
Can I benefit from your expert advise too?
I am banking on Python & especially web2py for porting my apps from
Microsoft platform.
I tested turbogears but abandoned it since I found it too complex for
simple tasks, a lot of dependencies, memory savvy, weak docs, less
active community
In markmin there are no line breaks. Just paragraphs. You have to set
the distance between paragraphs in CSS.
form=SQLFORM(...)
form.element('textarea')['_rows'] = random.randint(10,20)
On May 16, 3:13 pm, Jay Shaffstall wrote:
> I've searched, but not found any information that helps me at my
I've searched, but not found any information that helps me at my
current level of web2py experience.
Question 1: how do you insert a single line break (e.g. ) in
markmin? I've seen two spaces at the end of lines, but that doesn't
seem to work for me. I've seen that you can use as a separator
in
... if you are affected please email me personally.
Villas,
Let me give a little background.
I have this entire massive application successfully running at client-
sites in Microsoft Visual FoxPro.
I have decided to shift from licensed platform to open-source
platform.
Chose Python for programming language & web2py for framework.
My present task is
Simon,
I thought on the idea of adding a MySQL temp table to manage insert/
del/update on multiple tables.
But there would be a large no. of such forms requiring this
functionality.
It is better to avoid fiddling with the schema (which is the database-
tier) for the sake of business-logic tier.
Wh
It seems you have a very difficult workflow, but have at least
established how your data should look.
So, ignore the tables a little for now, try to visualise what the
user will see on the screen. How would your users like to enter their
data into the forms? What data needs to be entered, by w
Villas,
Your direction is perfect.
While programming in VFP, in some of my forms, I had designed multiple
steps (wizard).
After breaking down the form into logical steps, further breaking down
is not possible.
Let me give a concrete example here. (back end database is MySQL).
Consider an automobil
PyWurfl is AWESOME!
I used it for some web2py stuff on my thesis. It turned out very well
as I could find just about anything I wanted about a phone. Glad to see
it in use.
BR,
Jason
On 05/16/2011 08:36 PM, mattgorecki wrote:
I started building mobile views using jQuery Mobile just a few day
On Monday, May 16, 2011 2:27:54 PM UTC-4, Chris May wrote:
>
> 2) Wrap the JavaScript in jQuery's document ready function:
> $(document).ready(function () {
> ... your JavaScript ...
> };
Hmm, according to http://api.jquery.com/ready/, $(function()...) is
equivalent to $(document).ready(fun
Tip: get the value of the URL and set the Debug accordingly from
that, it makes it easier if you don't have to remember changing the
flag.
Have a look at this, for example:
request.env.http_host.split('.')[0]
On May 16, 6:15 pm, Ross Peoples wrote:
> I was thinking about setting this in a db.p
On Monday, May 16, 2011 12:44:02 PM UTC-4, pbreit wrote:
>
> GAE provides it's own fetch() function but that could be because of special
> needs:
> http://code.google.com/appengine/docs/python/urlfetch/fetchfunction.html
>
So does web2py:
http://web2py.com/book/default/chapter/12#Fetching-an-e
More than one year ago I wrote this:
http://www.web2py.com/examples/static/mobile_device_detect.py
and it has no dependencies. Do you think it still works?
Massimo
On May 16, 12:36 pm, mattgorecki wrote:
> I started building mobile views using jQuery Mobile just a few days
> before you release
I started building mobile views using jQuery Mobile just a few days
before you released this. For the most part we did the same things,
but I have a bit of code that in models/0.py that checks for a mobile
user agent and adjusts the view accordingly. This way I can use the
same controller for bot
Using 1.95.1 and not trunk, I found that I needed to use
VERIFY_SERVER = 'www.google.com/recaptcha/api
Otherwise, it works.
I tried to do as it is in the comments, but did not work:
http://web2pyslices.com/main/slices/take_slice/102
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
I was thinking about setting this in a db.py file or something to indicate
that the app in in debug mode. Then before deploying, setting this to false.
Also allowing controllers, modules, etc to access the value of this might be
beneficial. It could be a master 'debug' switch for an entire appli
Up.
How do I use LOAD in the module?
2011/5/9 Jonathan Lundell
> On May 9, 2011, at 12:57 PM, Bruno Rocha wrote:
>
> On Mon, May 9, 2011 at 3:46 PM, Martín Mulone
> wrote:
>
>> current.db = DAL(..)
>>
>
> The db doesn't belongs to app?
>
> current.app.db = DAL(...)
>
>
> Yes, I think that's be
I was pretty surprised at how bad the state of Python's "http client"
libraries were. Fortunately I've been doing pretty simple stuff so far so
urllib/urllib2 have been adequate. But this definitely looks nicer.
GAE provides it's own fetch() function but that could be because of special
needs:
I can take another look at it but you are welcome to try and debug as well.
Oh, wow, that didn't even occur to me.
Yeah, you need to define models for all your tables. Here's a bit of info on
"Legacy Databases":
http://web2py.com/book/default/chapter/06#Legacy-Databases-and-Keyed-Tables
There's a script that might be able to help you out:
http://code.google.com/p/web2py
Hi Vineet
I think I am understanding more, but still not enough to properly
help you :(
The business logic of your system is entirely in your own hands. The
group cannot really help with that.
If you have a tricky form which will generate a multitude of
outcomes, you should try making a flowc
On 16 mai, 11:08, Ross Peoples wrote:
> I haven't actually tried this yet, but couldn't you do something like this
> to turn it off/on:
>
> import gluon custom_import
> custom_import.DEBUG = False
You can do:
from gluon import custom_import
custom_import.DEBUG = False
But right now it won't cha
I haven't actually tried this yet, but couldn't you do something like this
to turn it off/on:
import gluon custom_import
custom_import.DEBUG = False
Hello,
There is a new version of the web2py importer in the trunk version.
This new version has the capability of reloading any modules when an
import is made on a module that has changed. So you can edit your .py
files in 'modules' or 'site-packages' or somewhere else and web2py
will reload the n
I made a slight edit in the book near the end of the
http://web2py.com/book/default/chapter/06#Record-Representation section,
where 'db.tables' is mentioned. It now indicates that db.tables lists the
tables defined for the db connection (previously it said that 'db.tables'
queried the database
Hello everybody,
i m trying to use web2py with the rpy2 package. Everything is alright
and I can use rpy2 its really pretty [http://rpy.sourceforge.net/
rpy2.html] and i can use it also without problems in web2py.
Now I want to add the package gplot because I need to plot Cofidence
Intervals. I in
Simply connecting to a database does not tell web2py what tables are in the
database. You have to explicitly define the tables by using the DAL
define_table method. So, you code should be:
db=DAL('mysql://varun:VaruN@192.168.0.240:3306/test') # note, you should
use DAL(), not SQLDB().
db.defi
its
print db['person']
Here its giving error
On May 6, 9:31 pm, pbreit wrote:
> What is line 5 in db.py?
Check out https://bitbucket.org/rochacbruno/powertable/overview and
http://www.ebansoftware.net/en/prodotti/item/9-editable-jqgrid.
Anthony
On Friday, May 13, 2011 9:00:01 AM UTC-4, msaddicted wrote:
> Hello all,
> I'm absolutely new to web2py and I'm trying to build an app to let web
> user
and python version please (needed for benchmarking)
pymysql also have the advantage to run on top of jython and pypy with no
efforts
and I guess that on top of pypy it will have much better performance
what benchmark do you use ?
also please provide some more information so I can reproduce your error
- what are other tables structure?
- what data do you have?
- Mysql version ans schema type (MyISAM or InnoDB)
thank you so much for your hints and pointers pbreit, btw, an error occured
when i tried to do it.
e.g. 1.
=== controller ===
def index():
pages = db(db.page.id > 0).select(orderby = db.page.title)
comments = db(db.comment.id > 0).select()
for comment in comments:
comment_group
Massimo!
I was wrong to say that pymysql is 20% slower. It is 3 times slower
than mysqldb, and does huge memory leak (both facts for Windows XP).
Mysql is so popular that you should treat it as priority! Please
consider switching back to mysqldb or at least making this user-
selectable easily.
Be
Hi,
It has a module that I used the "link" forms using SQLFORM.factory, and
everything went right. How do I make this just the same way that editing the
data? I can send the data tothe forms, but it does not save.
_
*Gilson Filho*
*Web Developer
http://g
Dear Simon & villas,
Thanks for your replies.
Let me digest your ideas by putting them to work.
Then I can ask for your help on fine-tuning the form.
In reply to villas's post, I have this to write---
Dear villas,
Seems that you have got my problem almost correctly
I confirm the problem. Had the same errors.
Solution for user: delete all non-tickets files from errors directory.
Any non-ticket file in directory generates error and links like
http://127.0.0.1:8000/admin/default/errors/
does not work.
To preserve directory structure in my application hg repos
I am wondering the best way to send more than one record's value to a
controller and then update a database with it. What i want to do is
push a string like:
var data = "[{"id": 1, "val": something},{"id": 2, "val":
somethingElse}]";
into:
$.ajax({
type: "POST",
url: fetchURL("s
Memory tables referred to have no ability to write to disk. Generally
we've used these for report accumulations. You could use a MySQL table
and delete the record at the end (if need be). Crude and there should
be a more pythonic method, but should work.
Define temp table fields as per the followi
I get the following error when call SQL table, when I have reference
fields in my data table.
E.g.:
db.define_table('alarms',
SQLField('function_name', 'string', length=64),
SQLField('created_at', 'datetime',
default=datetime.datetime.now()),
SQLField('header', db.headers),
SQLFiel
Hello,
As I have been more and more interested in GAE from app design
perspective. I lurked into the codebase for web2py's gae driver and it
seems to be mapping all the native futures I would like to have ( 'out
of the box without custom queries' ). However I am wondering about the
general experie
I saw it many times but I was looking for some "install" or "apply" button.
Thank you, Bruno.
--
Vinicius Assef.
On 5/15/11, Bruno Rocha wrote:
> Layouts are plugins, un your app click in plugin and choose the file to
> upload.
> Em 15/05/2011 21:31, "Vinicius Assef" escreveu:
>> Guys, I'm c
I think defaulting to case insensitive would be a good idea as well.
For a while I wanted to stick with the specification which calls for
email servers to be case sensitive for email addresses but I think for
practical reasons case insensitive makes a lot of sense where
bob.h...@gmail.com is equiv
http://docs.python-requests.org/en/latest/index.html
83 matches
Mail list logo