Dear all,
I'm looking for a way to allow non-users of my application to login given a
password (generated by a user) so they can view some of the user's data.
Does anyone know if web2py readily supports this? Or perhaps someone has an
idea on how to implement it.
Regards,
Liam
I apologise. I was trying to send the message from the google groups
interface but nothing happened and I copied it to the gmail interface
forgetting to fill in the subject.
Regards
Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you. (Psalm 63:3)
Thanks for the answer! I think that it is going to be so useful to me.
But I have a doubt... How I create my own server? I mean... The people dont
have to register in Jabber. They need to register into my server, and their
JID must be like ro...@myserver.com not ro...@jabber.com.
Can I do that wi
On 30 May 2012 10:33, R. Osinga wrote:
> You use:
>
> $(document).ready(function() {
> $('a[href*="Alternative"]').a**ttr(data-toggle,'modal');
> $('a[href*="Alternative"]').a**ttr(data-target,'#alt');
> });
>
> But it should be:
>
> $(document).ready(function() {
> $('a[href*="Alt
Yes, something like that if your wanting to setup a xmpp server. That is
out side the scope of this conversation.
I would take a deaper looking into that server and see how it works.
Most likely it's just a headless client and your going to need to use
web2py to somehow interface with it. When
I suppose if your boss said you need to do this project with jabber, but
a simple chatting server could be done without xmpp at all. So, what is
it you really are trying to do and go from there.
BR,
Jason
On 05/30/2012 12:07 PM, Román Torres wrote:
Thanks for the answer! I think that it is goi
I believe this is an unrelated change, a case of "it's not a bug, it's a
feature"... It defaults to look like buttons in all browsers now.
You could change this back, of course, or even propose to web2py to have
the old defaults back...
Regards
On Wednesday, May 30, 2012 7:42:07 AM UTC+2, Andr
Hi,
I have a custom form that has a dynamic size with a for-loop that inserts
checkboxes into the form.
This works fine in small numbers, but when I increase the number of
checkboxes inserted I noticed the page takes longer and longer to load.
(obviously it's going to take longer but it's not
Ok, about the issue with update, it looks that it comes from
AutocompleteWidget itself because replacing the widget with the default
web2py 1.99.4 autocomplete widget and I still get the issue :
#widget = AutocompleteWidgetSelectOrAddOption(request,
db.table2.table2field1,
#id_fiel
Maybe it related to this :
https://groups.google.com/forum/?fromgroups#!topic/web2py/MzAUt73M_4w
Richard
On Wed, May 30, 2012 at 8:41 AM, Richard Vézina wrote:
> Ok, about the issue with update, it looks that it comes from
> AutocompleteWidget itself because replacing the widget with the defaul
So, this would be a one time password that expires? And this data that the
user views is generated on the fly and also discarded later?
On Wednesday, May 30, 2012 9:09:31 AM UTC+2, Liam wrote:
>
> Dear all,
>
> I'm looking for a way to allow non-users of my application to login given
> a passwor
On 30 May 2012 12:59, R. Osinga wrote:
> beats me...
>
> I have determined that it is unrelated to this code. I see it elsewhere
in the app also.
> but for some other improvement,
>
> $(document).ready(function() {
> $('a[href*="Alternative"]').a**ttr('data-toggle','modal').a**ttr(
> 'dat
On 30 May 2012 14:44, Richard Vézina wrote:
> Maybe it related to this :
> https://groups.google.com/forum/?fromgroups#!topic/web2py/MzAUt73M_4w
>
In my own apps I have stoped using the autocomplete widget since I
discovered it gave problems on IE-browsers (something confirmed by some
other user
I think form.insert just does a regular Python list insertion (plus two
other trivial function calls). Can you show the form.insert code as well as
your alternative list code?
Anthony
On Wednesday, May 30, 2012 8:12:39 AM UTC-4, DanielB wrote:
>
> Hi,
>
> I have a custom form that has a dynamic
If you use the parameter-based rewrite system to set a default app,
controller, and function and specify the list of available functions in the
default router, then in http://yourdomain.com/code/shortname, code and
shortname will be interpreted as request.args[1:2], with the request being
route
Hi I like to put a for-loop in a try except clause in an html file.
My problem is that the pass from the for loop terminates the try block.
{{try:}}
{{for x in db.test}}
{{=x.title}}
{{pass}}
{{except:}}
no database entries
{{pass}}
Are you using 64bit environment ?
I remember I got the error when I tried with python 64bit or something. If
you are using 64bit, try 32bit and it should work.
On Wednesday, May 30, 2012 12:57:03 AM UTC-5, Andrew wrote:
>
> The Uniform Server option looks very interesting, as does the newer apa
I think you should not do this, do this kinf of logic on controller, model
or module.
On Wed, May 30, 2012 at 11:08 AM, BlueShadow wrote:
> Hi I like to put a for-loop in a try except clause in an html file.
> My problem is that the pass from the for loop terminates the try block.
> {{try:}}
> {
didn't test it, but I spot a missing : after "for x in db.test"
Il giorno mercoledì 30 maggio 2012 16:08:10 UTC+2, BlueShadow ha scritto:
>
> Hi I like to put a for-loop in a try except clause in an html file.
> My problem is that the pass from the for loop terminates the try block.
> {{try:}}
>
Hello Paolo,
Pretty nice!
Did you implement the update of the records also?
Is it a straight and easy task or it becomes trickier to implement than the
rest of the app??
Richard
On Sat, Oct 29, 2011 at 6:21 PM, Paolo Caruccio
wrote:
> Bruno,
>
> thanks.
>
> What do you think about the upload
btw, this works perfectly as intended
trying to do 1/0
{{try:}}
{{for a in range(15):}}
{{=1/0}}
{{pass}}
{{except:}}
can't divide by 0
{{pass}}
Il giorno mercoledì 30 maggio 2012 16:15:10 UTC+2, Niphlod ha scritto:
>
>
> didn't test it, but I spot a missing : after "for x in db.test"
Hi I think I took this code from one of massimos tutorial videos:
def recipes():
try:
failtrial=int(request.vars.category)
rows=db(db.recipes.category==request.vars.category).select(orderby=~
db.recipes.submitted)
except:
rows=db().select(db.recipes.ALL, orderby=~db
I tried it too and for some weird reason it works.
The missing doublepoint you spotted is in my complete code on my server^^
what I really want to do is: diyplaying a database entry in a table.
this entry varies from no entries to about 10.
I didn't account for the no entries part but I got a bunch
OK I did some further testing and I'm pretty stupid some basic
understanding of python would tell me that the for loop finishes without a
problem if there are no elements in it.
{{try:}}
{{print articlesformovie[0]}}
{{noarticles=0}}
{{except:}}
{{noarticles=1}}
Es sind bisher ke
Are there any good alternatives to using pyjamas/pyjs or learning
JavaScript from scratch? I've tried installing pyjamas/pyjs on a few of my
Debian systems (thank G-d for virtual machines), but can't seem to get it
to run in development. I've tried from source and followed a ton of
informatio
you're overcomplicating a small issue
{{if articles and len(articles)>0:}}
display whatever you want in a for loop
{{else:}}
display your static message
{{pass}}
Il giorno mercoledì 30 maggio 2012 16:44:22 UTC+2, BlueShadow ha scritto:
>
> I tried it too and for some weird reason it works.
>
OK it obviously has nothing to do with the for loop in try except because
the for loop finishes when there are no entries in articles. But some basic
understanding of python should have told me the solution^^
thats what works if anyone is interested:
{{try:}}
{{print article[0].title}}
{{empty=0}
len(articles) is not necessary
{{if articles:}}
display whatever you want in a for loop
{{else:}}
display your static message
{{pass}}
On Wed, May 30, 2012 at 12:04 PM, Niphlod wrote:
> {{if articles and len(articles)>0:}}
> display whatever you want in a for loop
> {{else:}}
> display your sta
thats even more elegant^^
Am Mittwoch, 30. Mai 2012 17:04:16 UTC+2 schrieb Niphlod:
>
> you're overcomplicating a small issue
>
> {{if articles and len(articles)>0:}}
> display whatever you want in a for loop
> {{else:}}
> display your static message
> {{pass}}
>
> Il giorno mercoledì 30 magg
> Are there any good alternatives to using pyjamas/pyjs or learning
JavaScript from scratch?
What problems are you having? I've been using a recent version of pyjamas
without problem.
(Of course with the recent "hijack" of the project by some disgruntled
people there may be other reasons to
stefaan-
As I just posted on the pyjs group (with a stupid typo :)):
pyjs was installed from git.
1) hulahop doesn't work.
2) error message when running the following:
['/home/lwapnitsky/workspace/pyjamas/eclipse_build.py', '-d', '-I
/home/lwapnitsky/workspace/pyjamas', 'test.py']
Tracebac
Or maybe I misread your question, and you were really asking about pyjd ?
I haven't used it, so I don't know... so far debugging the application was
easy enough by dumping debug information onto the bottom of my page.
Hi LightDot,
Thanks for the quick reply.
The user is able to perform analyses on data that they've uploaded to the
site. When they wish to publish an article in a journal based on the
analyses, they need to allow reviewers to see the data generated by the
analyses along with the initial data
Just some clarification. In the solution I'm trying to implement, I need to
make sure that only the person who entered the reviewer code can view the
data; much like user login but anonymous. Because it is anonymous and there
is no entry in db.auth_user, I think the decorator @auth.requires_logi
uhm, depends if he uses lists and articles is = [], there will be a
problem.
Anyway, under some circumstances you're right.
Il giorno mercoledì 30 maggio 2012 17:11:33 UTC+2, rochacbruno ha scritto:
>
> len(articles) is not necessary
>
> {{if articles:}}
> display whatever you want in a f
https://github.com/mdipierro/workflow
I could use some feedback about this. Should it be included in scripts/? It
can be used to deleted old errors, expired sessions, setup automatic
emails. etc.
It is intentionally very minimalist.
I cannot help much with the hulahop (that's needed for pyjd only, which i
haven't used myself).
I normally compile on the command line, using the pyjsbuild tool found
inside the pyjamas/bin folder,
and test inside the browser.
On Wednesday, May 30, 2012 11:59:13 AM UTC-4, Niphlod wrote:
>
> uhm, depends if he uses lists and articles is = [], there will be a
> problem.
What problem? An empty list evaluates to False.
Anthony
>
> You could also have web2py and php
> share a database system like PostgreSQL.
>
Hello Allen,
This remark is interesting. I've been working hard for 2 days trying to get
phpMyAdmin to run with web2py but I am having difficulties. Do I need two
different servers to run PHP and web2py? My n
Hi Anthony,
I read the relevant part of the book:
http://www.web2py.com/books/default/chapter/29/4?search=url+rewrite#Parameter-based-system
and had a look at router.example.py file, I am not sure I completely
understand the solution you provided me with.
If you use the parameter-based rewrit
solved some of the issues...time to get crackin'!
On 5/30/2012 12:01 PM, stefaan wrote:
I cannot help much with the hulahop (that's needed for pyjd only,
which i haven't used myself).
I normally compile on the command line, using the pyjsbuild tool found
inside the pyjamas/bin folder,
and tes
>
> ... in router.example.py? In my case default_application = 'init',
> default_controller = 'default' and default_function = 'index' What do you
> mean by 'and specify the list of available functions in the default router'
> . My application contains 15 controllers and almost 100 functions,
The "hashbang" ("#!") is for a very specific purpose where your whole page
is coded in JavaScript. It was sort of popularized by Twitter who is
actually now abandoning it. I'm not sure why you would want to use it.
If you have your routes set up with a default app and default controller,
you co
I suspect there's a reason you're not just using regular accounts but that
would definitely be my suggestion.'
On Wednesday, May 30, 2012 8:59:03 AM UTC-7, Liam wrote:
>
> Just some clarification. In the solution I'm trying to implement, I need
> to make sure that only the person who entered th
I think opening a Bootstrap modal should be much easier:
http://twitter.github.com/bootstrap/javascript.html#modals
On Wednesday, May 30, 2012 6:16:11 AM UTC-7, Johann Spies wrote:
>
> On 30 May 2012 12:59, R. Osinga wrote:
>
>> beats me...
>>
>> I have determined that it is unrelated to this co
Hey,
I'm trying to validate some things on a self reference field, among them
that a reference field on a table does not refer to the record where it is.
For instance,
db.define_table('person',
Field('name', length=256, unique=True, requires=IS_NOT_EMPTY()),
Field('gender', requires= IS
On May 30, 2012, at 9:37 AM, Annet wrote:
> ... in router.example.py? In my case default_application = 'init',
> default_controller = 'default' and default_function = 'index' What do you
> mean by 'and specify the list of available functions in the default router' .
> My application contains 15
On May 30, 2012, at 9:57 AM, pbreit wrote:
> If you have your routes set up with a default app and default controller, you
> could do something simple like:
>
> def u():
> row = db(db.auth_user.shortname==request.args(0)).select().first()
> return dict(row=row)
>
> Which should support U
On May 30, 2012, at 10:16 AM, Jonathan Lundell wrote:
> On May 30, 2012, at 9:37 AM, Annet wrote:
>> ... in router.example.py? In my case default_application = 'init',
>> default_controller = 'default' and default_function = 'index' What do you
>> mean by 'and specify the list of available funct
On Wednesday, May 30, 2012 6:16:21 PM UTC+2, Bill Thayer wrote:
>
> You could also have web2py and php
>> share a database system like PostgreSQL.
>>
>
> Hello Allen,
>
> This remark is interesting. I've been working hard for 2 days trying to
> get phpMyAdmin to run with web2py but I am having
First: What database you are looking for? PHPmyadmin is only for MySQL. For
PostgreSQL exist the PHPpgadmin at sourceforge.
Second: If your database exists, you can access through the right admin
interface (above), with your user and pass.
Now you can create your database dictionary.
So, the DAL c
solved some of the issues...time to get crackin'!
Glad to hear it :)
I have found the "inspect element" tool in chromium to be very valuable
in diagnosing trouble with my application.
I am astonished... I missed this in almost 3 years of python development :D
I genuinely repent and knee before you, Anthony
Niphlod
Il giorno mercoledì 30 maggio 2012 18:11:32 UTC+2, Anthony ha scritto:
>
> On Wednesday, May 30, 2012 11:59:13 AM UTC-4, Niphlod wrote:
>>
>> uhm, depends
I'm amazed that the docs explaining features is perhaps longer than the
actual code executing it
IMHO it deserves inclusion in scripts/... 5 KB against 6,5 to trash
sessions, 9,6 to install on fedora..
Il giorno mercoledì 30 maggio 2012 18:00:26 UTC+2, Massimo Di Pierro ha
scritto:
>
>
Isn't that the case for every code?
In my experience if the source is longer then the docs, the code is not
worth using.
Massimo
On Wednesday, 30 May 2012 14:03:46 UTC-5, Niphlod wrote:
>
> I'm amazed that the docs explaining features is perhaps longer than the
> actual code executing it
>
+1
This is perfect for managing repeated task
A file observer, task dispatcher/scheduler with a cool syntax!
mic
2012/5/30 Niphlod :
> I'm amazed that the docs explaining features is perhaps longer than the
> actual code executing it
> IMHO it deserves inclusion in scripts/... 5 KB against 6
Andrew,
it's simple go back to old auth_navbar.
In views/layout.html comment this jquery code:
jQuery('.auth_navbar').each(function(){
jQuery(this)
.addClass('btn-group')
.children('a').addClass('btn')
});
and change the in this way (note separ
Hey Paolo!
Funny I was on this thread because a search in gmail and I am just workin
to improve your multiupload app.
I am creating the update form actually I have been able to insert the
values of the record for the f_trip table, but I struggle for the data from
the f_photo table that need to be
Hello everyone,
I have a quick question.
I am using the SQLFORM tool and creating a form using the generated custom
widgets. One part of the form allows a one to choose a user from a select
list (the table has a reference to auth_user). I'd like to limit the
options shown in the select list to
http://xing.github.com/wysihtml5/
Another one...
2012/5/29 Marco Tulio Cicero de M. Porto
> That or they mean that they'll never do it.
>
>
> 2012/5/28 Massimo Di Pierro
>
>>
>>
>> On Monday, 28 May 2012 17:51:02 UTC-5, Vasile Ermicioi wrote:
>>>
>>> and no font name, font size
>>
>>
>> That's
uhm, maybe only for python and ruby
And let me add that this level of "conciseness" isn't for everybody: I
noticed that the no of lines of my programs get smaller every month, but I
still can't write down such minimal (yet understandable) code ...
This is one of the reason I like to hang on
IS_IN_DB takes also a queryset .
Directly from http://web2py.com/books/default/chapter/29/7
query = (db.table.field == 'xyz') #in practice 'xyz' would be a variable
db.table.field.requires=IS_IN_DB(db(query),)
put that before calling SQLFORM and voilà.
Il giorno mercoledì 30 maggio 201
Excelent! I will try that to solve the session and errors cleaning and the
notification system for Movuca.
On Wed, May 30, 2012 at 1:00 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> https://github.com/mdipierro/workflow
>
> I could use some feedback about this. Should it be include
about redactorjs
http://redactorjs.com/download/
You are *free* to use Redactor for your personal or non-profit website
projects.
You can get the author's permission to use Redactor for commercial websites
by paying a fee.
More of a curiosity on my part, but why does web2py promote AddToAny (by
automatically including it with every new application)?
Sure, it's easy enough to remove, but why is it in there in the first place?
Is it possible to wildcard the sub-domain of a domain mapping route?
Ex: domains = {"*.myserver.com": "myapp"}
about this http://xing.github.com/wysihtml5/
bad UI look on ie 8, even it says that is supported,
a lot of functionality missing compared to redactorjs (no tables, no
background color, no file upload, very simple link and image inserting, and
so on )
do they have a roadmap of what will be suppor
I was thinking the same. It's a little bit annoying.
On Wednesday, May 30, 2012 4:22:02 PM UTC-5, Chris May wrote:
>
> More of a curiosity on my part, but why does web2py promote AddToAny (by
> automatically including it with every new application)?
>
> Sure, it's easy enough to remove, but why i
Richard,
I saw your email in the discussion regarding bootswatch, but I want to
answer here for competence.
Multiupload is a my old project. The object of the toy app was demonstrate
the usage of multiupload control. It wasn't a complete application.
Your intentions, however, are interesting.
Thanks LightDot,
I thought it may have been a feature, so just my opinion, I think the non
button look was better. It looks more consistent with the other links in
the navbar, and other Bootstrap menus.
So, do we keep the buttons, or change it back ?
With regards to Paolo's reply below, I d
No, 32 bit. XP (would you believe, It's a work computer !).
On Thursday, May 31, 2012 2:09:40 AM UTC+12, Omi Chiba wrote:
>
> Are you using 64bit environment ?
> I remember I got the error when I tried with python 64bit or something. If
> you are using 64bit, try 32bit and it should work.
>
RTM, eh. I didn't think to look at the IS_IN_DB validator for this. In
fact, I didn't even have one as I was relying on the default. Thanks!!
On Wednesday, 30 May 2012 13:55:35 UTC-7, Niphlod wrote:
>
> IS_IN_DB takes also a queryset .
> Directly from http://web2py.com/books/default/chapter/2
We are doing something similar to a social network with multiple plataforms
(encyclopedia, dictionary, forums, rol system and so much more, all this
multilanguage). And now we need to create a chat.
A chat similar to Facebooks chat or Google Talk and mixed with IRC...
Chatrooms, private (person
Andrew,
we aren't changing bootstrap.css, but only bootswatch.css. This last file
is necessary to override some css rules from web2py.css incompatible with
bootstrap.css
Please, try a bootswatch theme and let me know if you see any error.
Il giorno giovedì 31 maggio 2012 00:36:51 UTC+2, An
Agree. I constantly mouse-over it accidentally and can't imagine ever
actually using it.
On Wednesday, May 30, 2012 3:03:09 PM UTC-7, Omi Chiba wrote:
>
> I was thinking the same. It's a little bit annoying.
>
> On Wednesday, May 30, 2012 4:22:02 PM UTC-5, Chris May wrote:
>>
>> More of a curiosi
Good point. I found it useful. We can remove it.
On Wednesday, 30 May 2012 19:15:02 UTC-5, pbreit wrote:
>
> Agree. I constantly mouse-over it accidentally and can't imagine ever
> actually using it.
>
> On Wednesday, May 30, 2012 3:03:09 PM UTC-7, Omi Chiba wrote:
>>
>> I was thinking the same.
#1 I am assuming that when you replace router.example.py or
routes.example.py with router.py or routes.py, respectively, in the base
folder they should take over?
#2 Can they be added to app folder? if they are added will they take
precedence ?
I am not finding a lot about this online
I have been going through the book and I have been seeing gluon imports.
Don't say this is crazy but is Web2Py Pulling from this library.zip, this
is where the gluon import are coming from?
On May 30, 2012, at 5:56 PM, Horus wrote:
> #1 I am assuming that when you replace router.example.py or
> routes.example.py with router.py or routes.py, respectively, in the base
> folder they should take over?
No, always routes.py.
> #2 Can they be added to app folder? if they are added will
I removed the .example from routes.example.py to make it routes.py, changed
the values but noting happened?
On Wednesday, May 30, 2012 9:07:40 PM UTC-4, Jonathan Lundell wrote:
>
> On May 30, 2012, at 5:56 PM, Horus wrote:
>
> #1 I am assuming that when you replace router.example.py or
> route
Additionally, if routes.py is the main file what is the purpose of
router.py?
On Wednesday, May 30, 2012 9:07:40 PM UTC-4, Jonathan Lundell wrote:
>
> On May 30, 2012, at 5:56 PM, Horus wrote:
>
> #1 I am assuming that when you replace router.example.py or
> routes.example.py with router.py o
On May 30, 2012, at 6:13 PM, Horus wrote:
> I removed the .example from routes.example.py to make it routes.py, changed
> the values but noting happened?
You need to reload the routing information. The easiest way is to restart
web2py, though you can also do it through the admin app.
> On Wedne
On May 30, 2012, at 6:20 PM, Horus wrote:
> Additionally, if routes.py is the main file what is the purpose of router.py?
There is no router.py. router.example.py gets renamed to routes.py.
>
> On Wednesday, May 30, 2012 9:07:40 PM UTC-4, Jonathan Lundell wrote:
> On May 30, 2012, at 5:56 PM, Ho
I've got an application that uses memcached. I'd like to recognize when web2py
gets restarted (mod_wsgi, fwiw) so I can flush my cache. No doubt I can figure
something out, but I'm sure I must be missing something obvious. (My
motivation: in my development environment, I sometimes blow away my d
You must be using the binary distribution. If you use the source
distribution there is a web2py/gluon/ folder.
On Wednesday, 30 May 2012 20:00:32 UTC-5, Horus wrote:
>
> I have been going through the book and I have been seeing gluon imports.
> Don't say this is crazy but is Web2Py Pulling from t
you can make a cron job in admin @reboot
On Wednesday, 30 May 2012 21:10:13 UTC-5, Jonathan Lundell wrote:
>
> I've got an application that uses memcached. I'd like to recognize when
> web2py gets restarted (mod_wsgi, fwiw) so I can flush my cache. No doubt I
> can figure something out, but I'm
On May 30, 2012, at 7:08 PM, Horus wrote:
> I have attached a screenshot to show you what i am seeing.
>
> I started python 4 weeks ago and web2py for the last 2 so this is completely
> new to me.
> I downloaded a windows copy in this copy there are the two files I mentioned
>
> I got it to wo
On May 30, 2012, at 7:13 PM, Massimo Di Pierro wrote:
> you can make a cron job in admin @reboot
I'll look at that, thanks.
>
> On Wednesday, 30 May 2012 21:10:13 UTC-5, Jonathan Lundell wrote:
> I've got an application that uses memcached. I'd like to recognize when
> web2py gets restarted (m
understood!
On Wednesday, May 30, 2012 10:13:43 PM UTC-4, Jonathan Lundell wrote:
>
> On May 30, 2012, at 7:08 PM, Horus wrote:
>
> I have attached a screenshot to show you what i am seeing.
>
> I started python 4 weeks ago and web2py for the last 2 so this
> is completely new to me.
> I downlo
thanks Massimo for this tip...
I used the blob field to store AES encrypted Credit Card, and everything
worked fine to store it but when I was reading records from the table I was
getting this error:
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/base64.py",
li
>
> You want to pick which router to use, and copy its example file to
> routes.py. The name router.example.py is misleading in that respect, and
> there's been some discussion of changing the names, but it's embedded in a
> lot of documentation, so it has some inertia.
>
I've been lobbying to
>
> From what you are saying *router.py* shouldn't be there or is obsolete
> I am using the system for the first time I was assume it was there for a
> reason.
>
web2py does not come with a router.py file. If you have one, you (or
someone else) must have put it there.
Anthony
I have a field named category:
db.define_table('mytab',
Field('categ', db.categ, label=T('Category'),
default=12,
requires=IS_IN_DB(db, 'categ.id', '%(name)s', zero=None),
),
I create a dynamic form for this field, whose value is submitted by ajax:
form = SQLFORM.fa
Note, the default IS_IN_DB validator for a reference field also sets the
label argument of the validator to be the _format attribute of the
referenced table (so the select will show a more descriptive field or set
of fields from the referenced table rather than just the record number). If
you'r
On Wednesday, May 30, 2012 5:16:56 PM UTC-4, Vasile Ermicioi wrote:
>
> about redactorjs
>
> http://redactorjs.com/download/
>
> You are *free* to use Redactor for your personal or non-profit website
> projects.
> You can get the author's permission to use Redactor for commercial
> websites by
On May 30, 2012, at 7:13 PM, Massimo Di Pierro wrote:
> you can make a cron job in admin @reboot
It'd have to be soft cron, yes? And it wouldn't run until after my app services
its first request after restart, if I remember my soft cron logic aright.
>
> On Wednesday, 30 May 2012 21:10:13 UTC-5
Hii Anthony
I am able to POST and insert the data in to the database can you help me to
get the user email who will be authenticated and i will get the data from
the database which are associated with the particular user.
example:-
curl -u a...@gmail.com "http:127.0.0.1:8080/myapp/api/getdata/proj/
Thank you all for your replies. Problem solved!
Kind regards,
Annet
Are you saying you want to be able to login via a curl request? For that,
you'll probably have to enable basic authentication:
http://web2py.com/books/default/chapter/29/9#Access-Control-and-Basic-Authentication.
Once logged in, the user record should be available in auth.user.
Anthony
On Thu
1) You may have problems if you open your application in another language:
Field('gender', requires= IS_IN_SET([T('Male'), T('Female')],
zero=T('choose one'))),
should be
Field('gender', requires= IS_IN_SET([('Male',T('Male')),
('Female',T('Female'))], zero=T('choose one'))),
2) The requirement
1 - 100 of 108 matches
Mail list logo