If your contrib needs to have its own models and controllers, then you
should create it as a plugin. Or you can create a module and define an API
for it, take a dummy example.
/modules/myawesomemodule.py
class MyAwesomeClass(object):
"""
it creates the Awesome object which is a login_met
Hello all,
I decided to tackle this with the first implementation I saw in the
documentation. I insert two custom fields, remove the f_measure field from
the form and use the "SQLForm without Database IO" code from the book to
process the form. Here's my (somewhat ugly) code, hopefully it will
I accidentally hit sent while still editing the code formatting. Oh well,
it should be obvious how it works. I still feel a custom widget with a
validator doing the value calculation would be nicer, but I'm not sure if
that's possible.
Kind regards,
Michael
--
---
You received this message
Mmm, suppose I could do things like that…
But it is rather annoying that web2py has no built-in
reverse-engineering (intropspection) that can impose a web2py overlay
atop an existing database…
On Sat, Feb 9, 2013 at 7:04 PM, Bruno Rocha wrote:
> If your contrib needs to have its own models and c
>
> But it is rather annoying that web2py has no built-in
> reverse-engineering (intropspection) that can impose a web2py overlay
> atop an existing database
there are some scripts to generate models from database,
web2py/scripts/extract_mysql_models.py
web2py/scripts/extract_pgsql_models.py
web
Yesterday I was using admin to fine tune dozens of records and It was very
tedious with admin just to delete records.
+1 for admin2
C'mon guys, django has it for a long time!
Small details are also important!
Em sexta-feira, 8 de fevereiro de 2013, rif escreveu:
> I'd love to work on it again :)
Hi,
Let's see the definition:
db.define_table('t_bsc',
Field('id', type='integer', label=T('Service Code')),
Field('f_name', type='string',
label=T('Service name'),
comment=T('The name of the customer facing service as known to
your customer.')),
But in my smartgrid,
Ok, so it's not included in the grid options.
changing it in web2py.js would disable the confirmation globally, that's a
bit dangerous for other tables. I would prefer to do it only for 1
particular table.
Or maybe creating a web2py_noconfirm.js included in a layout_noconfirm.html
?
--
---
Thank you.
Kenneth
https://github.com/mdipierro/web2py-book
On Friday, 8 February 2013 23:51:57 UTC-6, Kenneth wrote:
Hello,
is the web2py online book app available as an appliance?
I'd like to take a look for example on the database setup.
Kenneth
--
---
You received t
Hi,
I got a quite similar result by working on the validation at the form level:
if form1.process().accepted:
session.flash = 'File uploaded'
redirect(URL('check_xls_file', args=form1.vars.id, user_signature=
True))
elif form1.errors:
response.flash = 'File rejecte
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
wait a second . you may be missing an important bit.
DAL has no introspection whatsoever for retrieving existing tables if you
have not defined them.
That doesn't mean that you have to define tables at every connection (it's
easy, but let's assume you don't want to).
When you define tables o
On Sat, Feb 9, 2013 at 11:53 PM, Niphlod wrote:
> wait a second . you may be missing an important bit.
> DAL has no introspection whatsoever for retrieving existing tables if you
> have not defined them.
> That doesn't mean that you have to define tables at every connection (it's
> easy, but l
Do you want to disable the confirm message when clicking the "Delete"
buttons on the grid itself? In that case, the confirmation is not
controlled by the code in web2py.js. For those buttons, there is an
"onclick" handler defined in the button element itself. We should probably
include an optio
Okay, GitHub maintenance has ended.
That pull-request isn't for a server; it's for a consumer.
I'm building—and have just about finished—an OAuth2 server (provider)
for web2py.
To put it simply:
We currently consume Facebook to grab facebook user details and whatnot
With my package we will be
I use postgres with psycopg2, never try with other version, it a new I had
developped where I was needing to do that.
Richard
On Fri, Feb 8, 2013 at 5:30 PM, Brian M wrote:
> What database are you using? Did it work prior to web2py 2.3.2? The dict
> keys (field names) are retrieved from the
Ok, was coming from postgres, I have to double quote it in order to get
postgres respect upper cases.
With :
SELECT field AS Field FROM ...
Postgres return field
With SELECT field AS "Field" FROM ...
Postgres return Field
May be it is my SQL that was bad at the start, standard SQL may required
well what we are using is a hybrid model:
- the ios device uses a modified form of OAuth to get access tokens (and
we have the confusing problem of users start anonymous but with an access
token, and then may later create an "account" associating an email and
other user data with the account)
Hello rochacbruno,
I loaded this application on two different machines/environments, and the
information in the form is not being saved to the database song table. I
tried this as both a logged in user, and not logged in user.
I began to trouble shoot, and modified the form from:
def index():
I printed the request.vars to the console, and this is what I got after
form submission:
So the star rating is definitely not making its way back to the server.
I'm guessing it should look like the following:
Please help :)
Thanks,
Michael Gheith
On Friday, February 8, 2013 4:52:19 PM UTC
Please!
Nobody can help me? I'm desperate to solve this problem. How can web2py
work together con php apps? (in this case joomla).
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails
Howesc,
Thanks for great info. So, does mobile app user have to register web2py via
access token provided by their hardware in mobile application? May you
explain how you built the login/registration module for mobile app users
along with web2py?
Do you code in html5 with native code for developing
Amazon EC2 is a web server, highly scalable and secure.
recommend
This installation is easy, is a pre configured server that runs with web2py
https://aws.amazon.com/marketplace/pp/B009I68K0E/ref=srh_res_product_title?ie=UTF8&sr=0-2&qid=1360439635824
--
---
You received this message because yo
yes i suspect it would be an apache configuration. you want to use python
connector for www/web2py and php connector for www/joomla.
unfortunately i have not configured apache in years and don't know the
exact answer. :(
sorry i'm not more help.
cfh
On Saturday, February 9, 2013 11:24:26 AM
feel free to ask more questions as you learning things!
cfh
On Friday, February 8, 2013 2:54:46 PM UTC-8, Riccardo C wrote:
>
> Thanks a lot for all these informations. It seems I have a lot to learn ;)
>
>
>
> On Wednesday, 6 February 2013 20:54:21 UTC, howesc wrote:
>>
>> Riccardo,
>>
>> some
lo que puedo entender es que quieres correr web2py y php en el mismo
servidor, pero solo funcionaria si corres por ejemplo web2py en el puerto
80 y php en otro puerto ejjemplo 8000
El lunes, 4 de febrero de 2013 19:54:22 UTC-5, José Eloy escribió:
>
> Hello everybody!
>
> I got to install we
- Apple explicitly does not allow using the hardware identifier in your
app, and will reject app submission that do that. because of this each app
install "logs in" first as an anonymous user.
- website users use standard web2py auth
- app connections to the server use our modified OAuth API
One of the nice things about python modules that are not c-compiled is the
fact that you can read the source code. The bad part is that the source
code is not always easy to find. This is where ipython comes in.
IPython is an alternative to the regular python interpreter which offers a
bunch
28 matches
Mail list logo