[web2py:17527] Re: Does web2py support memcached as a session store ?

2009-03-04 Thread Markus Gritsch
2009/3/5 mdipierro : > > ignore this. On a second thought, this works but lives only for one > call, you want something more persistent. > It should be possible to built it with cache and sqlite:memory: I already tried this using Pythons module caching: import applications.welcome.modules.ra

[web2py:17526] Trouble creating Bazaar branch

2009-03-04 Thread Jonathan Benn
Hi all, I tried creating a new Bazaar branch of the web2py development trunk, using Bazaar v.1.12-2, and I got the following error: bzr: ERROR: Invalid http response for http://bazaar.launchpad.net/%7Emdipierro/web2py/devel/.bzr/repository/packs/38541ced633419b0d0b3fe01435b12ff.pack: Expected a

[web2py:17525] Sessions are destroyed by ajax calls?

2009-03-04 Thread SergeyPo
I have strange problem when trying to make ajax calls (all with jquery supplied with web2py). After an Ajax call previously created session becomes lost, and new empty session is created. I tried file storage and db sessions storage, it does not matter. After ajax call, any other call to the site

[web2py:17524] Re: Patch complete: adding configurability to EditArea

2009-03-04 Thread Jonathan B
Hi Massimo, On Mar 4, 4:53 pm, mdipierro wrote: > I do not have access. Public access has been granted. The patch (up-to-date to revision 584 of trunk) is available here: http://sites.google.com/a/benn.ca/file-locker/file-cabinet/web2py_EditArea_patch.zip > Instead of the static/...ini file

[web2py:17523] Re: Patch complete: adding configurability to EditArea

2009-03-04 Thread Jonathan B
Hi Massimo, On Mar 4, 4:53 pm, mdipierro wrote: > I do not have access. Oups, sorry. I'll try to figure out what went wrong. If all else fails I'll email you the patch. > Instead of the static/...ini file can you place the configurations in > models/0.py where the other settings are? Ok,

[web2py:17522] Session timeout

2009-03-04 Thread NguyendHEX
I see the session processing at http://groups.google.com/group/web2py/browse_thread/thread/14ec13e619fff190/d1799abb37d7d331?lnk=gst&q=session#d1799abb37d7d331 I don't know when session is cleared by web2py if the application clear it manually. --~--~-~--~~~---~--~

[web2py:17521] new feature in trunk: service

2009-03-04 Thread mdipierro
Please try this and send me comments: from gluon.tools import Service service=Service(globals()) @service.run @service.json @service.jsonrpc @service.xmlrpc @service.amfrpc def f(a,b): return a+b @service.rss def myfeed(): return dict (title='title',link='link',description='description'

[web2py:17520] Re: Does web2py support memcached as a session store ?

2009-03-04 Thread mdipierro
ignore this. On a second thought, this works but lives only for one call, you want something more persistent. It should be possible to built it with cache and sqlite:memory: Massimo On Mar 4, 9:36 pm, mdipierro wrote: > no but we have > > SQLDB("sqlite:memory:") > > On Mar 4, 5:23 pm, Robin B

[web2py:17519] Re: Does web2py support memcached as a session store ?

2009-03-04 Thread mdipierro
no but we have SQLDB("sqlite:memory:") On Mar 4, 5:23 pm, Robin B wrote: > No one has published a 'RAMDB' (a DAL driver for RAM).  It could > easily be implemented as a global dict, and it could be useful for say > caching, but I would not put sessions into ram for production.  If you > have mo

[web2py:17518] Re: DAL mssql DSN connection

2009-03-04 Thread mdipierro
I am putting this is but, as you say, probably db2/400 only. On Mar 4, 4:29 pm, DenesL wrote: > After a successful insert, either one of these will work: > > int(cursor.execute("select IDENTITY_VAL_LOCAL() from > SYSIBM.SYSDUMMY1").fetchone()[0]) > int(cursor.execute("select IDENTITY_VAL_LOCAL()

[web2py:17517] Re: db insert override default id

2009-03-04 Thread mdipierro
The problem is not web2py's. The problem is, to all supported backends allow this? On Mar 4, 2:20 pm, ceej wrote: > I know, leave that as default but it would be nice to have the choice > to override if you wanted :) > > I just came into this problem because I wanted the id's of the web2py > api

[web2py:17516] Re: Critical point in web2py

2009-03-04 Thread Pedro
So, we got to the point when we should/must figure out how much are both problems connected to each other. Are we lacking man power to write the so necessary docs or do we have them, it's just that a non production ready wiki set up is getting on the way? Or maybe both problems exist. I've always

[web2py:17515] Re: auth_user question -- how to link to current logged in user?

2009-03-04 Thread Joe Barnhart
Notice the subtle distinction in the messages here. auth.user.id -- this is the global variable 'auth' which has a variable named 'user' which in turn has a named variable called 'id'. This variable is valid only after a user is logged on and it refers to the id of the current user. If no one

[web2py:17514] Re: Does web2py support memcached as a session store ?

2009-03-04 Thread Robin B
No one has published a 'RAMDB' (a DAL driver for RAM). It could easily be implemented as a global dict, and it could be useful for say caching, but I would not put sessions into ram for production. If you have more than 1 application server/process, you will not be able to share sessions between

[web2py:17513] Re: auth_user question -- how to link to current logged in user?

2009-03-04 Thread Kuba Kucharski
When I do smth like that in my db.py: db.sipusers.owner_id.requires=IS_IN_DB(db(db.sipusers.owner_id==auth.user.id ),'auth_user.id','auth_user.name') I get: AttributeError: 'NoneType' object has no attribute 'id' the same: db.sipusers.owner_id.requires=IS_IN_DB(db(db.sipusers.owner_id==t2.per

[web2py:17512] Re: Textarea on SQLFORM

2009-03-04 Thread murray3
For the record (so others do not waste a lot of time) in controller: _value=XML(thipage.body,sanitize=True) should have been value=XML(thipage.body,sanitize=True) first example will clear the nicedit panel second example will include content from db.page.body got there in the end? On Feb 27, 8

[web2py:17511] Re: DAL mssql DSN connection

2009-03-04 Thread DenesL
After a successful insert, either one of these will work: int(cursor.execute("select IDENTITY_VAL_LOCAL() from SYSIBM.SYSDUMMY1").fetchone()[0]) int(cursor.execute("select IDENTITY_VAL_LOCAL() from SYSIBM.SYSDUMMY1").next()[0]) the result before int() is Note that SYSIBM.SYSDUMMY1 is probably o

[web2py:17510] Re: web2py / wsgi

2009-03-04 Thread LB22
Thanks AchipA, That was exactly the problem. I kept looking but couldn't see what was wrong. Thank you very much for your help. LB On 4 Mar, 20:43, AchipA wrote: > Not sure, but I see one point that is different from my setup. Try > > LoadModule authz_host_module modules/mod_authz_host.so > >

[web2py:17509] Re: web2py / wsgi

2009-03-04 Thread AchipA
Not sure, but I see one point that is different from my setup. Try LoadModule authz_host_module modules/mod_authz_host.so instead of access_module on line 11 On Mar 4, 5:56 pm, LB22 wrote: > Hi, > > I'm trying to setup my site which using the method found > here:http://forum.webfaction.com/vi

[web2py:17508] Re: Does web2py support memcached as a session store ?

2009-03-04 Thread Markus Gritsch
On Wed, Mar 4, 2009 at 7:47 AM, mdipierro wrote: > > for now you should be able to do in like this: > > from gluon.contrib.memcache import MemcacheClient > cache.memcache=MemcacheClient([.]) ### [...] is a list of memcache > IPs > session=cache.memcache(response.session_id,lambda:{},1e8) > de

[web2py:17507] Re: db insert override default id

2009-03-04 Thread ceej
I know, leave that as default but it would be nice to have the choice to override if you wanted :) I just came into this problem because I wanted the id's of the web2py api desktop client to match those of the websites ( for updating purposes ). On Mar 4, 1:20 pm, mdipierro wrote: > The all poi

[web2py:17506] Re: Critical point in web2py

2009-03-04 Thread Alexandre Andrade
2009/3/4 Francisco Gama > > my turn: > > one wiki, and one wiki only. There are very organized and consistent > wikis. > > We define a set of templates for different kinds of pages to document > and then each page should have a status like: sketch, temporary, page, > permanent (blocked). > In la

[web2py:17505] Re: Source repository confusion

2009-03-04 Thread AchipA
Are you sure you deleted them through svn and have committed the change ? Do a 'svn update'. If then get restored, it means you just deleted them from the filesystem, not the repository. Use 'svn rm fileme' to remove from repository. mdipierro wrote: > I think I cleanup most of this I just do not

[web2py:17504] Re: Critical point in web2py

2009-03-04 Thread Francisco Gama
my turn: one wiki, and one wiki only. There are very organized and consistent wikis. We define a set of templates for different kinds of pages to document and then each page should have a status like: sketch, temporary, page, permanent (blocked). In last case we could even make a UI that enforc

[web2py:17503] Re: Source repository confusion

2009-03-04 Thread mdipierro
I think I cleanup most of this I just do not understand where the epydoc files in svn come from. My folder is empty. Massimo On Mar 4, 8:21 am, Markus Gritsch wrote: > On Wed, Mar 4, 2009 at 3:10 PM, Markus Gritsch wrote: > > On Tue, Mar 3, 2009 at 11:00 PM, mdipierro wrote: > > >> This reall

[web2py:17502] Re: pdf/doc attachments work in sqlite, not in GQL

2009-03-04 Thread mdipierro
Two issues: 1) the download action should be def download(): return response.download(request,db) else if will not work on GAE 2) GAE has very limited storage size. I have doubts a PDF or DOC file will fit. This may be the major cause of your problem. Massimo > import os > path=os.pa

[web2py:17500] Re: db insert override default id

2009-03-04 Thread mdipierro
The all point of ID is that you do not set it. The db egnine sets it. On Mar 4, 12:07 pm, Joe Barnhart wrote: > What is the use case for controlling the id like this? > > Does the id in question exist already or are you trying to fill in > "empty" ids?  If it exists already, why don't you updat

[web2py:17499] Re: Critical point in web2py

2009-03-04 Thread mdipierro
You have blessing ;-) I still willing to host it and there may be an advantage but 1) what do you want me to install? 2) we agreed that we will use launchpad for bugs reports and tickets 3) we agreed to use reST for documentation. Depending of what we choose the wiki linking may help or get i

[web2py:17501] Re: Critical point in web2py

2009-03-04 Thread Fred
I corrected a few pages in the wiki to fix some reST problems. But I see virtually no activity there. And I agree with the concerns about the wiki's limitations, both as expressed in this group and in the "TODO" page on the wiki. --~--~-~--~~~---~--~~ You receive

[web2py:17498] Re: form pre-population fails if field is shown in 1.56.2

2009-03-04 Thread mdipierro
after accept try form.element(_name='password')['_value']='' On Mar 4, 10:46 am, vince wrote: > oh it was typo. > > db.define_table('person', >             db.Field('name'), >             db.Field('password','password'), >             . > ) > db.person.password.requires = [IS_NOT_EMPTY(), C

[web2py:17497] Re: Fields parameters and validations in a SQLFORM

2009-03-04 Thread mdipierro
I do not understand. Can you provide an example of code and what you expect it to do/ not to do? On Mar 4, 9:51 am, vamaq wrote: > Hi everybody, > I'm having a problem with an SQLFORM. The thing is that when I use the > fields parameter in an SQLFORM to show only one value the IS_IN_DB > validat

[web2py:17496] pdf/doc attachments work in sqlite, not in GQL

2009-03-04 Thread Scott
Was reading through the forms. In previous posts, this was a t2 issue. I understand t2 has now been wrapped in elsewhere. I can get attachments (pdf/docs) to show using sqlite as a backend, but not GQL. Here is my code: model --- db.define_table('news', SQLField('author',db.person),

[web2py:17495] Re: db insert override default id

2009-03-04 Thread Joe Barnhart
What is the use case for controlling the id like this? Does the id in question exist already or are you trying to fill in "empty" ids? If it exists already, why don't you update the existing entry? If the id does not exist already, then why is it important to control the value? On Mar 4, 9:41

[web2py:17494] Re: Critical point in web2py

2009-03-04 Thread Joe Barnhart
Yes. As I feared, we converted our momentum for documentation into a call for a new wiki project. The wiki project is now the logjam. This is what happens when we decide "we can do it better" and we will stop documentation until we finish this new better wiki. The new web2py wiki was tried and

[web2py:17493] db insert override default id

2009-03-04 Thread ceej
Hey, I really think by doing db.your_table.insert(id=2,name='test') should override the tables id being inserted to 2 (or whatever you set). Other wise you have to do: new_row=db.your_table.insert(name='test') db(db.your_table.id==new_row).update(id=2) db.commit() --~--~-~--~~

[web2py:17492] web2py / wsgi

2009-03-04 Thread LB22
Hi, I'm trying to setup my site which using the method found here: http://forum.webfaction.com/viewtopic.php?id=2373, but I keep running into an error when I try to start up (./webapps/apachewsgi/apache2/bin/ start): httpd: Syntax error on line 11 of /home/lnoir/webapps/apachewsgi/ apache2/conf/

[web2py:17491] Re: form pre-population fails if field is shown in 1.56.2

2009-03-04 Thread vince
oh it was typo. db.define_table('person', db.Field('name'), db.Field('password','password'), . ) db.person.password.requires = [IS_NOT_EMPTY(), CRYPT()] thisrecord=db(db.person.id==1).select()[0] form=SQLFORM(db.person, thisrecord) if not form.accepts(reque

[web2py:17490] Re: form pre-population fails if field is shown in 1.56.2

2009-03-04 Thread vince
oh it was typo. db.define_table('person', db.Field('name'), db.Field('password','password'), . ) db.person.password.requires = [IS_NOT_EMPTY(), CRYPT()] thisrecord=db(db.person.id==1).select()[0] form=SQLFORM(db.person, thisrecord) if not form.accepts(reque

[web2py:17489] Re: form pre-population fails if field is shown in 1.56.2

2009-03-04 Thread vince
oh it was typo. db.define_table('person', db.Field('name'), db.Field('password','password'), . ) db.person.password.requires = [IS_NOT_EMPTY(), CRYPT()] thisrecord=db(db.person.id==1).select()[0] form=SQLFORM(db.person, thisrecord) if not form.accepts(reque

[web2py:17488] Fields parameters and validations in a SQLFORM

2009-03-04 Thread vamaq
Hi everybody, I'm having a problem with an SQLFORM. The thing is that when I use the fields parameter in an SQLFORM to show only one value the IS_IN_DB validation stops to work. The IS_IN_DB validation works on the field that is been showed. Is this the correct behavior? Thanks! Juan --~--~--

[web2py:17487] Re: Does web2py support memcached as a session store ?

2009-03-04 Thread Markus Gritsch
On Wed, Mar 4, 2009 at 3:51 PM, Robin B wrote: > > I have been using MEMDB to store sessions in memcache since August > 2008: > http://groups.google.com/group/web2py/browse_thread/thread/cd89f11de4d23b53/f67faac66a695ca2?hl=en&lnk=gst&q=memdb#f67faac66a695ca2 > > the code is under contrib: > > fr

[web2py:17486] Re: CAS and new Auth module (tools.py)

2009-03-04 Thread notabene
Thanks! I will look into it. On 4 Mar., 14:42, mdipierro wrote: > On Mar 4, 2:50 am, notabene wrote: > > > I am wondering: > > > How does CAS and the new Auth module relate? > > For now they do not relate although it would be nice to rewrite CAS on > Auth and make the CAS client part of Auth >

[web2py:17485] Re: Scaffold application - day two

2009-03-04 Thread Alexandre Andrade
The code for T3 menu is inside t2.wiki. I will study it later to learn how use it. 2009/3/4 Iceberg > > On Mar2, 4:41am, Alexandre Andrade wrote: > > > Today I was fixed css and really put authentication to work. > > > > So, at this point, scaffold has: > > > > - a five spaces layout (logo, se

[web2py:17484] Re: Scaffold application - day two

2009-03-04 Thread Alexandre Andrade
about this, a follow a hint of Massimo, but forgot this detail. I include your tip too: T=lambda s,T=T:str(T(s)) # Insert this line But I'm not releasing another version for while because I'm working on database import. 2009/3/4 Iceberg > > On Mar4, 9:45pm, mdipierro wrote: > > On Mar

[web2py:17483] Re: Does web2py support memcached as a session store ?

2009-03-04 Thread Robin B
I have been using MEMDB to store sessions in memcache since August 2008: http://groups.google.com/group/web2py/browse_thread/thread/cd89f11de4d23b53/f67faac66a695ca2?hl=en&lnk=gst&q=memdb#f67faac66a695ca2 the code is under contrib: from gluon.contrib.memdb import * from google.appengine.api.mem

[web2py:17482] Re: Source repository confusion

2009-03-04 Thread Markus Gritsch
On Wed, Mar 4, 2009 at 3:10 PM, Markus Gritsch wrote: > On Tue, Mar 3, 2009 at 11:00 PM, mdipierro wrote: >> >> This really helps. Now I understand the problem and will fix it >> tonight. > > Still different, see attachment. > (first) is SVN, (second) is BZR Sorry, the BZR folder was not a clean

[web2py:17481] Re: Scaffold application - day two

2009-03-04 Thread Iceberg
On Mar4, 9:45pm, mdipierro wrote: > On Mar 4, 6:45 am, Iceberg wrote: > > > The last problem is that out-of-box scaffold20090301b.tar on web2py > > 1.56.4 always reports: > >   TypeError: unsupported operand type(s) for %: 'lazyT' and 'dict' > > when I trying to register a new user. I don't have

[web2py:17480] Re: Source repository confusion

2009-03-04 Thread Markus Gritsch
On Tue, Mar 3, 2009 at 11:00 PM, mdipierro wrote: > > This really helps. Now I understand the problem and will fix it > tonight. Still different, see attachment. (first) is SVN, (second) is BZR --~--~-~--~~~---~--~~ You received this message because you are subscr

[web2py:17479] Re: Source repository confusion

2009-03-04 Thread BigBaaadBob
One bummer with collapsing to BZR: I don't think there is a git-bzr is there? I agree with the below suggestions. There really needs to be ONE repo that is authoritative. I especially agree that it is better practice to NOT check-in generated contents like the epydocs, but rather have them get

[web2py:17478] Using Nicedit on a textarea

2009-03-04 Thread murray3
I have a problem with nicedit in a form textarea not displaying the db.name.field (i.e. db.page.body) data that has been previously updated in the form using nicedit and then submitting. The data displays after submit, and I can display it on another page using {{=XML(page.body,sanatize=true}} bu

[web2py:17477] Re: Patch complete: adding configurability to EditArea

2009-03-04 Thread mdipierro
I do not have access. Instead of the static/...ini file can you place the configurations in models/0.py where the other settings are? Massimo On Mar 4, 7:29 am, Jonathan Benn wrote: > Hi Massimo and all, > > Pursuant to our discussion regarding > EditArea:http://groups.google.com/group/web2py

[web2py:17476] Re: 1.57: Can't define db in admin interface

2009-03-04 Thread mdipierro
I cannot reproduce this. Can you add some print statmenets to applications/admin/controllers/default.py and try determine if is a browser issue (as I think), a JS issue or a server side issue? Did this work with 1.55? Yarko asked the right question: which browsers do you use? Massimo On Mar 4,

[web2py:17475] Re: Scaffold application - day two

2009-03-04 Thread mdipierro
On Mar 4, 6:45 am, Iceberg wrote: > On Mar2, 4:41am, Alexandre Andrade wrote: > > > > > Today I was fixed css and really put authentication to work. > > > So, at this point, scaffold has: > > > - a five spaces layout (logo, section menu, left column, center column, > > right column and footer.

[web2py:17474] Re: CAS and new Auth module (tools.py)

2009-03-04 Thread mdipierro
On Mar 4, 2:50 am, notabene wrote: > I am wondering: > > How does CAS and the new Auth module relate? For now they do not relate although it would be nice to rewrite CAS on Auth and make the CAS client part of Auth > I am having more domains pointing to different paths on the same > web2py-in

[web2py:17473] Re: "commands out of sync" on simple migration with MySQL & 1.55 or 1.57

2009-03-04 Thread mdipierro
Can you try make two migrations. First, drop the row. Second, add the row again with the new size This defines the error but it not very helpful http://dev.mysql.com/doc/refman/5.0/en/commands-out-of-sync.html On Mar 4, 2:44 am, cjparsons wrote: > I made a change to one of my models to incre

[web2py:17472] Re: How to dynamically set value of one input field based on another input field?

2009-03-04 Thread Fran
On Mar 4, 8:19 am, weheh wrote: > In particular, let's say I have two fields. The first field is > fuel_type, which is from a set ['gasoline','diesel']. The second field > is octane, which is from a set of either ['82','85','87','93'] or > ['15','17','19','21','23','25']. Depending on which fuel

[web2py:17471] Patch complete: adding configurability to EditArea

2009-03-04 Thread Jonathan Benn
Hi Massimo and all, Pursuant to our discussion regarding EditArea: http://groups.google.com/group/web2py/browse_thread/thread/652990a0d96342b0?hl=en I have create a new patch that allows web2py end users to easily modify some of the settings for EditArea, including the font size, full screen mo

[web2py:17470] Re: 1.57: Can't define db in admin interface

2009-03-04 Thread vamaq
Yes, I'm having the same problem. I (temporary) solve it using # as the first line. On Mar 4, 8:10 am, Markus Gritsch wrote: > On Wed, Mar 4, 2009 at 10:55 AM, Guido Kollerie wrote: > > > I have tried it with Safari Version 3.2.1 (5525.27.1) and with Firefox > > 3.0.6 both running under OS X 1

[web2py:17469] Re: Scaffold application - day two

2009-03-04 Thread Iceberg
On Mar2, 4:41am, Alexandre Andrade wrote: > Today I was fixed css and really put authentication to work. > > So, at this point, scaffold has: > > - a five spaces layout (logo, section menu, left column, center column, > right column and footer. > - a working authentication > - a secundary menu s

[web2py:17468] Re: Versioning web2py apps

2009-03-04 Thread AchipA
A couple of additional nifty options with versioning available (compared to having the whole web2py in a classic repository of some sort): - applications can check for newer versions in an organized way - migrating to newer versions that require additional magic to model migration is easier - ver

[web2py:17467] Re: Default font size and fullscreen for EditArea in Admin interface

2009-03-04 Thread Jonathan B
Hi Massimo, On Mar 4, 7:52 am, mdipierro wrote: > not true that we do not care. The fact is the long term plan is to > move to the Amy editor, rather than mess up with editarea. If you want > to submit a patch to change this, it will probably be accepted. Ok, I'll try writing a patch. --Jona

[web2py:17466] Re: 1.57: Can't define db in admin interface

2009-03-04 Thread Markus Gritsch
On Wed, Mar 4, 2009 at 10:55 AM, Guido Kollerie wrote: > > I have tried it with Safari Version 3.2.1 (5525.27.1) and with Firefox > 3.0.6 both running under OS X 10.5.6. With both browsers the issue > occurs. It doesn't matter if I 'toggle the editor'; both the Javascript > syntaxed colored edito

[web2py:17465] Re: 1.57: Can't define db in admin interface

2009-03-04 Thread Guido Kollerie
On 3-mrt-2009, at 17:54, Yarko Tymciurak wrote: > I did not see if you identified which browser you are using; could > you identify, and try w/ a different browser (one with a different > underlying core)? I have tried it with Safari Version 3.2.1 (5525.27.1) and with Firefox 3.0.6 both running

[web2py:17464] CAS and new Auth module (tools.py)

2009-03-04 Thread notabene
I am wondering: How does CAS and the new Auth module relate? I am having more domains pointing to different paths on the same web2py-instance. I want a coherent user-table, login, authentication and authorization on all URL's on the web2py-instance. (No login when changing domain). Any hints? -

[web2py:17463] "commands out of sync" on simple migration with MySQL & 1.55 or 1.57

2009-03-04 Thread cjparsons
I made a change to one of my models to increase the size of a VARCHAR field from 64 to 138. I'm using MySQL 5.0.51a-3ubuntu5.4 and web2py 1.57. I had the same problem with web2py 1.55. The SQL shown in sql.log is: timestamp: 2009-03-04T08:24:03.934903 ALTER TABLE meetups ADD entry_key__tmp VARCH

[web2py:17462] Re: Default font size and fullscreen for EditArea in Admin interface

2009-03-04 Thread Markus Gritsch
On Wed, Mar 4, 2009 at 5:52 AM, mdipierro wrote: > > The fact is the long term plan is to > move to the Amy editor, rather than mess up with editarea. Hmm, Amy Editor looks a bit Mac-centric to me. Not just the UI, but also the shortcuts, which use Mac-style symbols in the menu bar, and seem to

[web2py:17461] Re: How to dynamically set value of one input field based on another input field?

2009-03-04 Thread weheh
In particular, let's say I have two fields. The first field is fuel_type, which is from a set ['gasoline','diesel']. The second field is octane, which is from a set of either ['82','85','87','93'] or ['15','17','19','21','23','25']. Depending on which fuel type is selected, the select list for the