2009/9/7 mdipierro :
>
> Ouch,
>
> should be
>
> @service.xmlrpc
>
> not
>
> @service.xmlrpc()
>
Thanks.
Johann
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send emai
In my example with 2 tables, table1 and table2, and one form, the form
only populates some of the fields in tables1 and 2. The rest of the
fields are ignored (to be filled out at a later date once more info
has been collected). However, these other fields have validators that
complain and tack on
I do not understand.
On Sep 8, 12:42 am, Adi wrote:
> How can I refresh the value of DB in env dictionary?
>
> On Sep 8, 10:36 am, mdipierro wrote:
>
> > Not elegant but you can do this...
>
> > def index():
> > import subprocess
> > subprocess.Popen('python web2py.py -S yourapp -M
Please read my first post. I want to avoid the database error.
On Sep 8, 10:45 am, mdipierro wrote:
> I do not understand.
>
> On Sep 8, 12:42 am, Adi wrote:
>
> > How can I refresh the value of DB in env dictionary?
>
> > On Sep 8, 10:36 am, mdipierro wrote:
>
> > > Not elegant but you can do
How can I refresh the value of DB in env dictionary?
On Sep 8, 10:36 am, mdipierro wrote:
> Not elegant but you can do this...
>
> def index():
> import subprocess
> subprocess.Popen('python web2py.py -S yourapp -M -S
> yourscript.py')
> do something else
>
> On Sep 7, 11:58 pm
Not elegant but you can do this...
def index():
import subprocess
subprocess.Popen('python web2py.py -S yourapp -M -S
yourscript.py')
do something else
On Sep 7, 11:58 pm, Adi wrote:
> Nope. This requires running the conversion module independently from
> the command line. An
true
On Sep 8, 12:34 am, weheh wrote:
> I have already done that, so I should be good. The behavior I see is
> that when I try to resubmit, I'm asked whether I wish to resubmit or
> to cancel. I suspect this is the behavior one would expect to stop
> inadvertant multiple submissions, correct?
>
I have already done that, so I should be good. The behavior I see is
that when I try to resubmit, I'm asked whether I wish to resubmit or
to cancel. I suspect this is the behavior one would expect to stop
inadvertant multiple submissions, correct?
When using SQLFORM.factory, unless you give diffe
Nope. This requires running the conversion module independently from
the command line. Any other help with this?
On Sep 4, 11:15 am, mdipierro wrote:
> check if this does what you
> need:http://www.web2py.com/appliances/default/show/38
>
> Massimo
>
> On Sep 3, 11:34 pm, Adi wrote:
>
> > Hi,
>
Mind that T3 is quite dated. Try replace
{{=self.read(db.student)}}
{{=self.itemize(db.delivery)}}
{{=self.create(db.delivery)}}
with
{{=self.read(db.student)}}
{{=self.itemize(db.delivery)}}
{{db.delivery.student_id=self.id}}
{{=self.create(db.delivery)}}
Let us know if this fixes it.
Massim
Hello there,
On building my first web2py app, I bumped into a problem, perhaps you
can help?
I have the following DB:
db.define_table("student",
db.Field("name", length=100, notnull=True),
db.Field("type", requires=IS_IN_SET(("Master","Doctorate"))),
db.Field("entry_date", "d
You can do that or setup a repository somewhere (google code) and I
will just link it from appliances:
I encourage other users to adopt an appliance in the same way.
Massimo
On Sep 7, 10:02 pm, "mr.freeze" wrote:
> Sure. How should I send you updated versions? Email?
>
> On Sep 7, 9:56 pm, md
On Sep8, 2:44am, Fran wrote:
> On Sep 7, 7:19 pm, Coby Su wrote:
>
> > I want to get the current request uri, can anyone help me, and tell me
> > how could i do that in web2py
>
> request.env.http_host
> request.env.web2py_original_uri
>
> Look at:
> /applicationname/appadmin/state
>
> F
Glad t
Sure. How should I send you updated versions? Email?
On Sep 7, 9:56 pm, mdipierro wrote:
> I had not looked at this.
>
> Want to be a maintainer for this until a new version comes out (and
> perhaps later too)?
>
> On Sep 7, 9:50 pm, "mr.freeze" wrote:
>
> > Massimo, you may have already figur
I had not looked at this.
Want to be a maintainer for this until a new version comes out (and
perhaps later too)?
On Sep 7, 9:50 pm, "mr.freeze" wrote:
> Massimo, you may have already figured this out but just in case...The
> response needs to be rendered before sending back to the client:
>
>
Massimo, you may have already figured this out but just in case...The
response needs to be rendered before sending back to the client:
def m502():
form=FORM(INPUT(_type='text',_name='a',_class='integer',
requires=IS_INT_IN_RANGE(-100,100)),
'+',INPUT(_type='t
If you need to generate exel files:
1) download and unzip pyXLWriter under yourapp/modules/
2) make an action like
def index():
table=[['one','two','three'],[1,2,3],[1,4,6]]
return dict(pages=(('page1',table),('page2',table))
and create a view/generic.xls that contains:
{{
# to use
If you use FORM, SQLFORM or SQLFORM.factory just give different names
to the forms
form.accepts(request.vars,session,formname='thisformname')
and as long as the formnames are different you have no problem.
Massimo
On Sep 7, 9:01 pm, Iceberg wrote:
> Just a remind. The solution just disables t
I had a problem with registration, but it was because mail settings wasn't
configured.
But once registered, login was ok.
2009/9/7 villas
>
> I think a similar thing happened to me once. It was a problem with
> the record not being saving properly in the DB. Did you check your
> database cont
I know that I'm in the process of running into this, as I am doing a
multiple form screen made up of multiple tables and it is a creation
form. Is there any kind of workaround for preventing multiple
submissions under these circumstances? Otherwise, I imagine I have to
go to an way-station page th
Just a remind. The solution just disables the prevent-double-
submission feature. So developers are at your own risk. If your form
happens to be a "read-only" one, such as a search form, that is fine.
If it is an update form, that is probably ok too. If it is a create
form, it might cause problem.
Hi, I have an events table. I have a field to lookup on a person table
(field 1)
Then I want to do a lookup on the same person table to find a contact
(field 3)
I thought I could do this , but failed so I looked for an alias for
the person table
Any suggesions?
Jim
==
I do not understand the question. The code below looks correct but
perhaps you want to add
db.events.contact.requires=IS_IN_DB(db,'person.id','%(first_name)s %
(last_name)s')
On Sep 7, 8:48 pm, jayvandal wrote:
> Hi, I have an events table. I have a field to lookup on a person table
> (field 1)
thank you very much Yarko.
That's what I want.
On Sep 8, 2:41 am, Yarko Tymciurak wrote:
> sorry, I meant request.url
>
>
>
> On Mon, Sep 7, 2009 at 1:41 PM, Yarko Tymciurak wrote:
> > request.uri
>
> > Take a look at the "request" link in this example:
>
> >http://www.web2py.com/examples/simp
I am working with web services from here:
http://developer.yahoo.com/yql/console/?q=show%20tables&env=http://datatables.org/alltables.env
Can someone recommend their favorite XML parsing library?
--~--~-~--~~~---~--~~
You received this message because you are subsc
I used the above script and it worked well.
Now I have multiple web2py apps on webfaction with lots of static
files. How can I configure this so that these files are served
directory by Apache?
Richard
On Aug 31, 12:09 am, jlegler wrote:
> Try running it like this:
>
> python2.5 web2py -p 80
Hope it is clear to everybody that I rewrote the original wiki only
because I really like it.
Massimo
On Sep 6, 10:14 pm, mdipierro wrote:
> As an exercise, I have redone the following wiki:
>
> http://werkzeug.pocoo.org/wiki30/
>
> using web2py:
>
> http://web2py.com/examples/static/web2
It is on the IRC channel (#web2py on irc.freenode.net). It should be
close to everybody but no beer.
I think we should have parties on Second Life. There we could have
beer and we could dance too.
Massimo
On Sep 7, 7:48 pm, 陶艺夫 wrote:
> I envy you guys. I'd love to but it's too far for me. Hav
Aha, I didn't think the solution would be so simple. Thanks
On Sep 7, 3:35 pm, mdipierro wrote:
> It is because of mechanism to prevent double form submission. It
> breaks with multiple forms/age. To avoid this problem replace:
>
> if form.accepts(request.vars, session):
>
> with
>
> if form.acc
I envy you guys. I'd love to but it's too far for me. Have fun, guys! :)
2009/9/8 mdipierro
>
> What about Monday 14 in the late evening. Late evening works better
> for me too.
>
> Massimo
>
> On Sep 7, 6:03 pm, Álvaro Justen [Turicas]
> wrote:
> > On Mon, Sep 7, 2009 at 19:57, mdipierro wrote
See you there.
Massimo
On Sep 7, 7:16 pm, Álvaro Justen [Turicas]
wrote:
> On Mon, Sep 7, 2009 at 20:28, mdipierro wrote:
>
> > What about Monday 14 in the late evening. Late evening works better
> > for me too.
>
> It's ok for me!
> And about other users? Who will be in IRC?
> If you do not kn
On Mon, Sep 7, 2009 at 20:28, mdipierro wrote:
>
> What about Monday 14 in the late evening. Late evening works better
> for me too.
It's ok for me!
And about other users? Who will be in IRC?
If you do not know IRC ask me - it is very simple!
web2py metting:
Monday 14, 19h UTC
Channel #web2py at
Thanks for the hint mr.freeze - I was actually doing the opposite!
This was my function:
def test_upload():
form = SQLFORM.factory(
Field('script', 'upload', requires=IS_NOT_EMPTY()),
)
if form.accepts(request.vars, session):
response.flash = str(request.vars.scr
yes, that's correct (should have just checked mine before i hit send last
time)
On Mon, Sep 7, 2009 at 6:44 PM, Yarko Tymciurak wrote:
> without domain, you should look at the documentation - I believe is is
> http://[your_login_on_webfaction].webfactional.com
>
>
> On Mon, Sep 7, 2009 at 5:51 P
without domain, you should look at the documentation - I believe is is
http://[your_login_on_webfaction].webfactional.com
On Mon, Sep 7, 2009 at 5:51 PM, Jose wrote:
>
> I tried creating a ssh tunnel and works well.
>
> Jose
> >
>
--~--~-~--~~~---~--~~
You receiv
My pleasure. I think the same thing applies for CheckboxesWidget.
On Sep 7, 6:28 pm, mdipierro wrote:
> Thanks Nathan.
>
> On Sep 7, 6:05 pm, "mr.freeze" wrote:
>
> > Tested and working.
>
> > On Sep 7, 4:12 pm, mdipierro wrote:
>
> > > Thank you. Please check the fix in trunk.
>
> > > On Sep
Thanks Nathan.
On Sep 7, 6:05 pm, "mr.freeze" wrote:
> Tested and working.
>
> On Sep 7, 4:12 pm, mdipierro wrote:
>
> > Thank you. Please check the fix in trunk.
>
> > On Sep 7, 3:24 pm, "mr.freeze" wrote:
>
> > > It looks like the validator is being applied to the TR object for
> > > RadioWi
What about Monday 14 in the late evening. Late evening works better
for me too.
Massimo
On Sep 7, 6:03 pm, Álvaro Justen [Turicas]
wrote:
> On Mon, Sep 7, 2009 at 19:57, mdipierro wrote:
>
> > Yes. What about Wednesday 12-1pm chicago time?
>
> I think most people prefer at night. But this wedne
Tested and working.
On Sep 7, 4:12 pm, mdipierro wrote:
> Thank you. Please check the fix in trunk.
>
> On Sep 7, 3:24 pm, "mr.freeze" wrote:
>
> > It looks like the validator is being applied to the TR object for
> > RadioWidget and CheckboxesWidget, not the INPUT objects. Since TR
> > inherit
On Mon, Sep 7, 2009 at 19:57, mdipierro wrote:
>
> Yes. What about Wednesday 12-1pm chicago time?
I think most people prefer at night. But this wednesday I can't
because I'll be travelling to PythonBrasil5 (to present web2py!).
> On Sep 7, 5:55 pm, Álvaro Justen [Turicas]
> wrote:
>> On Mon, Se
Yes. What about Wednesday 12-1pm chicago time?
On Sep 7, 5:55 pm, Álvaro Justen [Turicas]
wrote:
> On Mon, Sep 7, 2009 at 18:55, mdipierro wrote:
>
> > Who wants to get together for a drink in Chicago, perhaps Thursday
> > before the chipy meeting?
>
> We could meet in IRC too. :-)
>
> --
> Álv
On Mon, Sep 7, 2009 at 18:55, mdipierro wrote:
>
> Who wants to get together for a drink in Chicago, perhaps Thursday
> before the chipy meeting?
We could meet in IRC too. :-)
--
Álvaro Justen
Peta5 - Telecomunicações e Software Livre
21 3021-6001 / 9898-0141
http://www.peta5.com.br/
--~--
I tried creating a ssh tunnel and works well.
Jose
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, se
On 7 sep, 17:49, Yarko Tymciurak wrote:
> you are missing a simple thing here - if this is the port webfaction gives
> you, then that is the port you probably have a default (or your mod_wsgi)
> running on already...
>
> For running from the command shell loggin, to get the password set use ANY
On Sep 7, 4:53 pm, Tim Michelsen wrote:
> Hello,
> I have troubles connecting and using an existing SQLite table from web2py.
>
> Here are my steps and difficulties
>
> 1) imported an existing table into sqlite
> 2) table definition with migrate=False
> => I get no values/entries shown in the d
I emailed it to you.
On Sep 7, 4:53 pm, mdipierro wrote:
> I cannot tell if this is related. Otehr things may have caused this,
> for example missing or corrupted database/*.table files.
>
> Can you show me what is sql.log?
>
> On Sep 7, 4:43 pm, "mr.freeze" wrote:
>
> > I'm not sure if this is
Who wants to get together for a drink in Chicago, perhaps Thursday
before the chipy meeting?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegro
Hello,
I have troubles connecting and using an existing SQLite table from web2py.
Here are my steps and difficulties
1) imported an existing table into sqlite
2) table definition with migrate=False
=> I get no values/entries shown in the database administration!
If I set migrate=True I get an e
I cannot tell if this is related. Otehr things may have caused this,
for example missing or corrupted database/*.table files.
Can you show me what is sql.log?
On Sep 7, 4:43 pm, "mr.freeze" wrote:
> I'm not sure if this is related by I just turned migrations back *on*
> in an app that uses My
I'm not sure if this is related by I just turned migrations back *on*
in an app that uses MySQL and got this:
Traceback (most recent call last):
File "C:\web2py\gluon\restricted.py", line 178, in restricted
exec ccode in environment
File "C:/web2py/applications/main/models/db.py", line 74
It is because of mechanism to prevent double form submission. It
breaks with multiple forms/age. To avoid this problem replace:
if form.accepts(request.vars, session):
with
if form.accepts(request.vars):
Massimo
On Sep 7, 4:31 pm, Alastair Medford wrote:
> Currently I am displaying multiple
So one of the changes from 1.66 to 1.67 is the default length of
string/password/upload fields from 32/32/128 to 512/512/512.
This will cause a migration in almost ALL existing applications
(unless you have explicitly declared a length or you have
migrate=False). This should not break anything an
Currently I am displaying multiple forms on one page via iframes, each
calling the same controller. When only one form is displayed on the
page, the form submits properly and validates etc. When two forms are
displayed however, pressing submit merely refreshes the iframe. When I
hit submit a secon
Thank you. Please check the fix in trunk.
On Sep 7, 3:24 pm, "mr.freeze" wrote:
> It looks like the validator is being applied to the TR object for
> RadioWidget and CheckboxesWidget, not the INPUT objects. Since TR
> inherits from DIV, DIV's _validate method is called which always
> returns Tru
It may *not* be worth pursuing if google groups will still be the main
source of discussion. I think there would need to be a consensus by
the leaders of web2py that this is the direction they want to go.
Unfortunately, even though pyForum would (IMO) add a lot of
organizational value to the web2
It looks like the validator is being applied to the TR object for
RadioWidget and CheckboxesWidget, not the INPUT objects. Since TR
inherits from DIV, DIV's _validate method is called which always
returns True. Passing the INPUT the 'requires' attribute fixes it
(line 248 sqlhtml.py):
opts += [T
I am not convinced this is the best syntax so if people have a better
idea that starts with 'firebird://' and can parse both normal uri and
embedded uri, let me know.
On Sep 7, 9:58 am, mdipierro wrote:
> In trunk try
>
> DAL('firebird_embedded://sysdba:master...@k:\\web2py\\fembed.fdb')
>
> On
I couldn't get it to install either. So as a work-around, I
extracted the contents into /web2py/applications/jpolite and then just
accessed it through site admin.
It seemed to suffer from problems in loading all the widgets. One
widget would load OK and the others hang. Anyhow, it gives an i
I think a similar thing happened to me once. It was a problem with
the record not being saving properly in the DB. Did you check your
database contains an auth_user record?
I can't remember exactly what the solution was, but it may have been
something to do with file permissions.
HTH
On Sep 6
Very cool!
On Sep 7, 1:55 pm, villas wrote:
> @Massimo
> Yes it worked! BTW I used forward slashes in the path (just because
> it seems to work and is easier to type).
>
> I can now work from a USB stick and deploy in seconds to a full
> Firebird client/server database; how cool is that!
> Tha
did you try:
requires=IS_NULL_OR(IS_DATE())
?
On Sep 7, 1:50 pm, jayvandal wrote:
> Hi,
> another question
> I want to be able to enter old dates like"1776-07-04" but I may not
> know a date at the time of record creation so I may leave the field
> blank.
> I tried to use Format but I get er
@Massimo
Yes it worked! BTW I used forward slashes in the path (just because
it seems to work and is easier to type).
I can now work from a USB stick and deploy in seconds to a full
Firebird client/server database; how cool is that!
Thanks for all your help.
David
On Sep 7, 3:58 pm, mdipierro
Unfortunatly your first suggestion would break backward compatibility.
You can do:
for field in db.table.fields: db.table[field].label=field
On Sep 7, 1:29 pm, duvo wrote:
> Hi to everybody!
> I want to accomplish this simple task:
> I need the labels in crud.select or crud.create to be the sa
thanks
On Sep 7, 1:00 pm, eddwinston wrote:
> Hi Massimo,
>
> I noticed a typo in section 3.8 when dealing with crud.create() in the
> show action. Line 5 reads:
> form = crud.create(db.image, next=URL(r=request, args...
>
> but I think it is suppose to be:
> form = crud.create(db.com
Hi,
another question
I want to be able to enter old dates like"1776-07-04" but I may not
know a date at the time of record creation so I may leave the field
blank.
I tried to use Format but I get errors no Format in database creation.
I changed from using the date verb to just plain length of fi
This may be a bug. If you can track it down let me know.
On Sep 7, 12:06 pm, "mr.freeze" wrote:
> I noticed that too. I am trying to track it down now. It looks like
> validation is not getting called at all for IS_IN_SET when using the
> RadioWidget.
>
> On Sep 7, 12:01 pm, Iceberg wrote:
>
Also, if you go to http://127.0.0.1:8000/[application]/appadmin/state
you can see all of the request, response and session variables for
your app.
On Sep 7, 1:19 pm, Coby Su wrote:
> I want to get the current request uri, can anyone help me, and tell me
> how could i do that in web2py
> Apprecia
On Sep 7, 7:19 pm, Coby Su wrote:
> I want to get the current request uri, can anyone help me, and tell me
> how could i do that in web2py
request.env.http_host
request.env.web2py_original_uri
Look at:
/applicationname/appadmin/state
F
--~--~-~--~~~---~--~~
You
sorry, I meant request.url
On Mon, Sep 7, 2009 at 1:41 PM, Yarko Tymciurak wrote:
> request.uri
>
> Take a look at the "request" link in this example:
>
> http://www.web2py.com/examples/simple_examples/hello6
>
>
> On Mon, Sep 7, 2009 at 1:19 PM, Coby Su wrote:
>
>>
>> I want to get the current
request.uri
Take a look at the "request" link in this example:
http://www.web2py.com/examples/simple_examples/hello6
On Mon, Sep 7, 2009 at 1:19 PM, Coby Su wrote:
>
> I want to get the current request uri, can anyone help me, and tell me
> how could i do that in web2py
> Appreciate that!
>
>
Finally found the problem. Seems that there was a requires clause in
my table definitions that caused the hiccup. Now, everything seems to
be running OK.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users"
I want to get the current request uri, can anyone help me, and tell me
how could i do that in web2py
Appreciate that!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send
On Sep 7, 7:03 pm, Fran wrote:
> On Sep 5, 3:36 pm, max wrote:
> > 2. In my active directory server to use "search_ext_s" i need a
> > administrator account,
> > How can i define it in ldap_auth_aux
> It's easily added, but we want to keep it optional for those
> environments which don't need i
Hi to everybody!
I want to accomplish this simple task:
I need the labels in crud.select or crud.create to be the same as the
fields' names (not capitalzed, not preceded by ".tablename") except
when a label is given in the model.
To get this, I have to set all the labels in the model with the name
On Sep 5, 3:36 pm, max wrote:
> After lots of tests and research of ldap_auth , I have some questions
> 1. Does the mode="ad" identify the Active directory in ldap_ath_aux?
Yes
> 2. In my active directory server to use "search_ext_s" i need a
> administrator account,
> What i think is genera
Hi Massimo,
I noticed a typo in section 3.8 when dealing with crud.create() in the
show action. Line 5 reads:
form = crud.create(db.image, next=URL(r=request, args...
but I think it is suppose to be:
form = crud.create(db.comment, next=URL(r=request, args...
the first one shows form
you are missing a simple thing here - if this is the port webfaction gives
you, then that is the port you probably have a default (or your mod_wsgi)
running on already...
For running from the command shell loggin, to get the password set use ANY
OTHER port number (since NO ONE will ever be accessi
I noticed that too. I am trying to track it down now. It looks like
validation is not getting called at all for IS_IN_SET when using the
RadioWidget.
On Sep 7, 12:01 pm, Iceberg wrote:
> Well, after some test, I am convinced that the IS_IN_SET(...,zero='')
> and IS_IN_DB(...,zero='') are also
Well, after some test, I am convinced that the IS_IN_SET(...,zero='')
and IS_IN_DB(...,zero='') are also a good solution. Thanks both of
you!
BTW, Freeze's example is illuminative. But somehow, choosing a "zero"
value doesn't generate an error message, even after I fixed a typo as
below:
form=S
On 7 sep, 14:01, mdipierro wrote:
> This is because that port is already in use. if not by one of your
> programs by another user.
>
Yes, but that is the port WebFaction gives me when I create the
application.
Any idea how to solve it.
Jose
--~--~-~--~~~---~--~--
Here is an example of using IS_IN_SET without a dropdown:
form=SQLFORM.factory(Field('choice',requires=IS_IN_SET
(('Yes','No','Maybe')),widget=SQLFORM.widgets.radio.widget))
On Sep 7, 11:23 am, "mr.freeze" wrote:
> Yeah, it doesn't feel as elegant (adds 8 lines instead of 2) but
> having it in
Yeah, it doesn't feel as elegant (adds 8 lines instead of 2) but
having it in the validators means it can be used by custom widgets.
On Sep 7, 11:11 am, Iceberg wrote:
> I won't argue that whether just two lines of code would make a "too
> heavy" sqlhtml.py become "unacceptably heavy", but at le
Works now. Thanks!
On Sep 7, 10:55 am, mdipierro wrote:
> for various reasons:
> - sqlhtml is already too heavy, the more we delegate to the validators
> and the wdgets the better
> - because one should be able to do use the IS_IN_SET validator without
> having the dropdown
>
> I added the miss
I won't argue that whether just two lines of code would make a "too
heavy" sqlhtml.py become "unacceptably heavy", but at least the
IS_IN_DB does not benefit from the improvement if it is not
implemented inside OptionsWidget.
By the way, would you give an example about "use the IS_IN_SET
validato
I reposted it. I had made a mistake.
On Sep 6, 11:34 pm, "mr.freeze" wrote:
> I think I could pull it off in 5 minutes with narration. I'll take a
> crack at it and email you when I have something.
>
> On Sep 6, 11:14 pm, mdipierro wrote:
>
> > the original version is 113 lines of python code
for various reasons:
- sqlhtml is already too heavy, the more we delegate to the validators
and the wdgets the better
- because one should be able to do use the IS_IN_SET validator without
having the dropdown
I added the missing like and uploading...
Massimo
On Sep 7, 10:50 am, "mr.freeze" wro
It throws an error for IS_IN_DB. It's just missing 'self.zero = zero'
in the __init__ function. It works after that. I'm curious though,
why did you moved it from OptionsWidget to the validators?
On Sep 7, 10:25 am, mdipierro wrote:
> I modified your patch.
>
> In trunk try this
>
> Field(...
I will not be able to look into this for a a week or so and I
apologize. If somebody with a better windows expertise then me an look
into this, I will take a patch to allow it.
On Sep 7, 10:40 am, max wrote:
> Hi Massimo,
>
> The script is an example for our AD and it works for me to get all the
I modified your patch.
In trunk try this
Field(...,requires=IS_IN_SET(('a','b','c'),zero=T('choose one')))
the option "zero" will be added at top but not accepted unless:
Field(...,requires=IS_NULL_OR(IS_IN_SET(('a','b','c'),zero=T('choose
one'
please give it a try.
Massimo
On Sep 5, 12
Hi Massimo,
The script is an example for our AD and it works for me to get all the
data except the password hash.
I wanted to test if i am making mistakes when connecting to the
server.
But I had to give an adminstrator account and a password to do the
search. Otherwise Ad doesn't allow the se
can you post the relevant code?
On Sep 7, 10:02 am, Carlos Aboim wrote:
> It's a little bit strange..
> I have in the default/layout the rigth code (as welcome app as reference)
> and in the menu, 'authentication' and the link after it doenst show...
> Any clues?
>
> thank you
> Carlos Aboim
>
>
In trunk try
DAL('firebird_embedded://sysdba:master...@k:\\web2py\\fembed.fdb')
On Sep 4, 5:24 am, villas wrote:
> > change by
> > con = kinterbasdb.connect(host='', database=r'k:\web2py
> > \fbembed.fdb',user='sysdba', password='masterkey')
>
> José,
> You rock man! I never tried the little
It is not clear from your message if this script works and you provide
it as an example or if not.
Massimo
On Sep 7, 9:26 am, max wrote:
> Hi Everybody,
> I wrote another script to access our ms active directory,
> If someone have idea t osolve the long overdue problem would be
> thankful.
>
>
It's a little bit strange..
I have in the default/layout the rigth code (as welcome app as reference)
and in the menu, 'authentication' and the link after it doenst show...
Any clues?
thank you
Carlos Aboim
2009/9/7 mdipierro
>
>
>
> On Sep 7, 8:14 am, Carlos Aboim wrote:
> > Yeah I know..
> >
yes,
SQLDB is the connection object for relation databases
DAL is a function that returns such object.
In most of the cases they are interchangable but in you can do DAL
('gae') while you cannot do SQLDB('gae') because gae is not a
relational database.
Do not use SQLDB, use DAL instead.
Massi
What is/are the difference(s) between DAL(...) and SQLDB(...)
Winston
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe
Hi Everybody,
I wrote another script to access our ms active directory,
If someone have idea t osolve the long overdue problem would be
thankful.
import ldap
def main():
server = "ad.mydmoan.com"
who = "user"
cred = "password"
keyword = "d...@mydomain.com"
base_dn = "ou=users,ou=kjc,ou
didn't know about SQLFORM.factory. Cool
On Sep 7, 5:01 pm, mdipierro wrote:
> form_factory is deprecated. Use SQLFORM.factory instead.
>
> On Sep 7, 1:50 am, eddwinston wrote:
>
> > Hi,
>
> > Just wondering why the form_factory class is not imported by default
> > so that we dont have to do "fr
On Sep 7, 8:14 am, Carlos Aboim wrote:
> Yeah I know..
>
> Well I'll try explain better my ideia.
>
> The default web2py app is a welcome app right?
> On index page of that app there is a menu on the left side of the page.
>
> So first of all, I want to change my default app! How do I do that?
Jose has found a Firebird Embedded connect string which works with
kinterbasdb. I would like to be able to add it somehow to sql.py so
that we can use the string in DAL.
I have spent a while trying, but I wasn't able to make the DAL work.
I'm not even sure that I am going about it in the right
1 - 100 of 111 matches
Mail list logo