[web2py] SSO using Atlassian Crowd

2010-10-16 Thread BigBaaadBob
Does anyone have any experience using Web2py with Atlassian Crowd supplying SSO? See: http://www.atlassian.com/software/crowd/

[web2py] Simple self-reference doesn't work; probable noob error...

2010-10-16 Thread BigBaaadBob
If I have this model: db.define_table('test', Field('name', writable=False), Field('refers_to', 'reference test')) And this controller function: def create(): db.test.name.default=request.args(0) form = crud.create(db.test, next = URL('index')) return dict(form=form) And go

[web2py] Re: Simple self-reference doesn't work; probable noob error...

2010-10-17 Thread BigBaaadBob
I realized at the grocery store last night that entering 0 (which I assume is an invalid ID) instead of nothing (equal to '') would resolve the problem because: >>> x = int('') Traceback (most recent call last): File "", line 1, in ValueError: invalid literal for int() with base 10: '' But wha

[web2py] Re: Simple self-reference doesn't work; probable noob error...

2010-10-17 Thread BigBaaadBob
Incidenntally, adding the requires you mention above makes everything work fine. Thanks! On Oct 17, 10:26 am, mdipierro wrote: > Somehow you got a string in a field that is supposed to be a > reference. My guess is that you inserted the data and than you changed > the field type. No, but withou

[web2py] "Pack all" and databases

2010-10-19 Thread BigBaaadBob
I gather "pack all" just packages the contents of the application's directory...right? This would then include the content "databases", right ? But if I want to deploy an app, it seems like I usually wouldn't want to also deploy the content of a database. Is there a way to "pack all" without inc

[web2py] Re: What does this mean?

2010-10-19 Thread BigBaaadBob
I can reliably create this problem with a model that contains "references xxx" and using populate. Trying to access the table in the db manager causes the referenced error.

[web2py] Re: What does this mean?

2010-10-19 Thread BigBaaadBob
=False, writable=False), format='%(title)s' ) # Put fake data in the requirements table from gluon.contrib.populate import populate if db(db.origin.id>0).count() == 0: populate(db.origin,5) db.commit() if db(db.kind.id>0).count() == 0: populate(db.kind,5) db.commit() if db(db.requirement.id>0).count() == 0: populate(db.requirement,50) db.commit() On Oct 19, 8:16 pm, BigBaaadBob wrote: > I can reliably create this problem with a model that contains > "references xxx" and using populate.  Trying to access the table in > the db manager causes the referenced error.

[web2py] Re: What does this mean?

2010-10-21 Thread BigBaaadBob
So, is this a bug in populuate, or something else? On Oct 19, 8:27 pm, BigBaaadBob wrote: > # The origin of the requirement: i.e. whether it is fundamental or > derived > db.define_table('origin', >     Field('name', requires=IS_NOT_EMPTY()), >    

[web2py] Generically accessing the results of select

2010-10-21 Thread BigBaaadBob
Suppose you do a query like this: rows = db((db.a.id==db.foo.xx) & (db.b.id==db.foo.yy)).select(db.foo.id, db.foo.aaa, db.a.name, db.b.name, db.foo.zzz, ) And you want to processes the results generically, say to produce JSON for input to jqGrid. By generically, I mean not having to repeat t

[web2py] Re: Generically accessing the results of select

2010-10-22 Thread BigBaaadBob
hat r['a.name'] should just do the right thing. But, again, maybe I'm missing something. On Oct 21, 11:24 am, Richard Vézina wrote: > Maybe this thread could be of some help. > > http://groups.google.com/group/web2py/browse_thread/thread/e533b38bd5... > > <http://gr

[web2py] Re: Generically accessing the results of select

2010-10-23 Thread BigBaaadBob
I must be expressing myself poorly. I'm saying that if the dal (and sql) Row class had a method like this: def column(self, colname): (table, field) = colname.split('.') return self[table][field] I could do this (which is what jqGrid wants): results = list() for row in big_long_hairy_se

[web2py] Re: Generically accessing the results of select

2010-10-24 Thread BigBaaadBob
On Oct 23, 10:52 pm, ron_m wrote: > The rows is a dict so if you apply the keys() function you get a list > of keys or values returns a list of values under the keys. > > rows = big_hairy_select_with_joins > > for row in rows: >   for table in row.values() >     for field in table.values() Yes,

[web2py:12185] Re: issues deploying latest web2py to GAE

2008-11-19 Thread BigBaaadBob
Isn't the ticket feature one of the key features of web2py? It is listed on the features page. On Nov 19, 2:53 pm, mdipierro <[EMAIL PROTECTED]> wrote: > It would not be too difficult but would it really be necessary? The > google error logs are not too bad. > > Massimo > > On Nov 19, 1:45 pm, A

[web2py:14648] Support for workflow?

2009-01-06 Thread BigBaaadBob
How would the group recommend one support workflow in a Web2py app? Consider, for example, a document approval application. The document may have to go through various steps of review and signoff, with notification and recording at each step. Is there support for that in Web2py, or something th

[web2py:14677] Re: Support for workflow?

2009-01-07 Thread BigBaaadBob
> > So, the best font ishttp://www.workflowpatterns.com/patterns/index.php > Oohh. Lots there, but I guess I was hoping for a Web2pyish simplest workflow api that could possibly work. ;-) --~--~-~--~~~---~--~~ You received this message because you are sub

[web2py:15018] Unable to run web2py in a git workspace

2009-01-15 Thread BigBaaadBob
If I do a SVN checkout from Google and then run web2py, everthing works fine. If I do the same thing using git, I get this: $ ./web2py.py default applications appear to be installed already web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2008 Version 1.55 (2009-01-0

[web2py:15033] Re: Unable to run web2py in a git workspace

2009-01-15 Thread BigBaaadBob
Ceej is right, and I realized it right after I posted. Git can't version empty directories. There is a long thread about it here, with Linux weighing in. http://kerneltrap.org/mailarchive/git/2007/7/17/251902. I don't know if anything has been done in Git to change this behavior. I'm not sure I

[web2py:15040] Re: Unable to run web2py in a git workspace

2009-01-16 Thread BigBaaadBob
Ceej: I'm using git-svn to track Massimo's SVN repo directly. It is probably just me, but I prefer to track the authoritative repo. I worry if different repos have the different "trunk" content. I know you are only talking about .gitignore files but it feels like a slippery slope to me. --~--

[web2py:15046] Re: Unable to run web2py in a git workspace

2009-01-16 Thread BigBaaadBob
work". * I can cause the empty directories to be created somehow and publish that for other git users (tracking svn) could do the same. This could even be automated somehow. I understand that you might not want to do things to support a SCM you don't use. On Jan 16, 9:50 am, BigBaaadBob

[web2py:15053] Re: Unable to run web2py in a git workspace

2009-01-16 Thread BigBaaadBob
b2py/ > > >>>> (you don't have to use mercurial - you can just get a zip or tar file - > >>>> see upper-right). > > >>>> Massimo - perhaps you could (just as a service to the community that > >>>> uses other repositories) include

[web2py:16333] Web2py requires being run in CWD

2009-02-14 Thread BigBaaadBob
Suppose you: $ mkdir foo $ cd foo $ wget http://mdp.cti.depaul.edu/examples/static/web2py_src.zip $ unzip web2py_src.zip That leaves you with web2py in the web2py subdir. If you then: $ python web2py/web2py.py Traceback (most recent call last): File "web2py/web2py.py", line 7, in from g

[web2py:16335] Re: Web2py requires being run in CWD

2009-02-14 Thread BigBaaadBob
Incidentally, it looks like VERSION gets read in two places (main and widget). Why is that? On Feb 14, 3:57 pm, BigBaaadBob wrote: > Suppose you: > > $ mkdir foo > $ cd foo > $ wgethttp://mdp.cti.depaul.edu/examples/static/web2py_src.zip > $ unzip web2py_src.zip > > Tha

[web2py:16350] Normalized database constraints and validation

2009-02-15 Thread BigBaaadBob
This seems to be a problematic FAQ, but: if I'm making an effort to normalize my database structure how do I do cross-table validation? Example (with extraneous things left out): db.define_table('competitions', SQLField('name','string'), SQLField('chief_ref','string')) db.competitions.na

[web2py:16368] Re: Normalized database constraints and validation

2009-02-15 Thread BigBaaadBob
ou are looking for this: > > db.events.name.requires=IS_NOT_IN_DB(db > (db.events.competition==request.vars.competition),'events.name') > > On Feb 15, 2:20 pm, BigBaaadBob wrote: > > > This seems to be a problematic FAQ, but: if I'm making an effort to > > n

[web2py:16462] Facebook Web2py group (and gluon group)

2009-02-17 Thread BigBaaadBob
It isn't real important or anything, but I was goofing off and discovered there is a web2py facebook group that has a few members but is lacking an admin. I also discovered there is a gluon FB group too. Maybe the gluon members can switch to the web2py group and maybe someone wants to be the gro

[web2py:16794] Re: New Appliance Submission: QrOne CSS Designer

2009-02-23 Thread BigBaaadBob
Maybe I'm overly fussy but "if you don't want sessions" doesn't scream GAE to me... Isn't there a way this can either be made automatic or at least explicit as in "if you us GAE you can't use sessions"... On Feb 23, 8:11 am, dhmorgan wrote: > fantastic! > > On Feb 19, 2:51 pm, blackthorne wrot

[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:17598] Re: Source repository confusion

2009-03-06 Thread BigBaaadBob
On Mar 5, 9:44 am, Yarko Tymciurak wrote: > The repository (git or otherwise - whoever maintains it) --- should have a > placeholder to hold empty directories. If the authoritative repository doesn't anchor these directories then you force other mirrors to be different to anchor these directorie

[web2py:17844] Re: Source repository confusion

2009-03-10 Thread BigBaaadBob
Is it fair to say, then, that you won't accept any patches that make it possible for git users to work on Web2Py? There are lots of places where Web2py crashes if there is no directory where it expects otherwise, even if that directory is empty. Maybe it is just me, but that seems like a design

[web2py:10595] Video tutorial uses blob instead of text

2008-10-24 Thread BigBaaadBob
[I tried to reply to a previous message about this, but stupid google groups expires reply capability after a while...] The video tutorial on viveo tells you to use blob instead of text, which causes the example to fail. You might want to put a note on that site if you can't voice-over the probl

[web2py:10597] Re: Video tutorial uses blob instead of text

2008-10-24 Thread BigBaaadBob
http://www.vimeo.com/428474 On Oct 24, 11:24 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Thank you. Which one is it? > > Massimo > > On Oct 24, 8:38 pm, BigBaaadBob <[EMAIL PROTECTED]> wrote: > > > [I tried to reply to a previous message about this, but st

[web2py:11199] Re: About patches

2008-11-05 Thread BigBaaadBob
> Should I just try a mercurial site, and see if that would work better? :-) Trac with GIT? ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to w

[web2py] Subclassing models?

2013-09-15 Thread BigBaaadBob
Suppose I have a "Person" table with all the typical stuff: db.define_table('Person', Field('FirstName','string', length=40, notnull=True), Field('MiddleName','string', length=40), Field('LastName','string', length=40, notnull=True),

[web2py] Re: Subclassing models?

2013-09-15 Thread BigBaaadBob
Yes,* *I didn't read far enough into the documentation. Ooopsies! On Sunday, September 15, 2013 6:33:18 PM UTC-7, Massimo Di Pierro wrote: > > Do you mean? > > db.define_table('Certificate',db.Pilot,...) > > > On Sunday, 15 September 2013 20:25:38 UTC-5

[web2py] Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-20 Thread BigBaaadBob
Has anyone implemented a closure table with triggers approach to hierarchy (specifically for a Bill of Materials (BOM) pattern) in Web2Py's DAL? I've seen Massimo's implementation of Preorder Traversal which doesn't wor

[web2py] Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-20 Thread BigBaaadBob
Has anyone implemented a closure table with triggers approach to hierarchy (specifically for a Bill of Materials (BOM) pattern) in Web2Py's DAL? I've seen Massimo's implementation of Preorder Traversal which doesn't wor

[web2py] Re: Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-21 Thread BigBaaadBob
t','Food') db.commit() print closure() add_node('Meat','Food') db.commit() print closure() add_node('Red','Fruit') db.commit() print closure() add_node('Chevy','Vehicle') db.com

[web2py] Re: Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-21 Thread BigBaaadBob
l of atoms of materials) > > On Wednesday, November 21, 2018 at 7:58:48 PM UTC+3, BigBaaadBob wrote: >> >> I went ahead and coded something up, inspired by Massimo's Preorder >> Traversal example. I wouldn't be offended if people suggest how to make it >&

[web2py] Re: Hierarchy (BOM) using closure table with triggers in DAL?

2018-11-21 Thread BigBaaadBob
The use case is manufacturing. Large complicated manufacturing with special requirements. And SAP need not apply... :-) On Wednesday, November 21, 2018 at 1:26:56 PM UTC-8, Dave S wrote: > > > > On Wednesday, November 21, 2018 at 10:33:13 AM UTC-8, BigBaaadBob wrote: >> >

[web2py] Freshly cloned web2py, grid example says "not authorized"

2020-09-22 Thread BigBaaadBob
I just now cloned (recursive) the web2py distro, started it, and clicked on the "grid example" button in the welcome application. I then registered when asked to authenticate. I got redirected back to the welcome app index page. I then click on the "grid example" button again and I get "Not aut

[web2py] Re: Freshly cloned web2py, grid example says "not authorized"

2020-09-22 Thread BigBaaadBob
Yes, thanks. I’m just surprised this doesn’t work In the Welcome application out of the box. I’m not writing a new application; I’m just clicking on the buttons provided in unchanged freshly cloned code. On Tuesday, September 22, 2020 at 11:04:00 AM UTC-7 Константин Комков wrote: > Hello! You n

[web2py] DAL implementation nof the Table-per-type inheritance model?

2020-10-17 Thread BigBaaadBob
It's hard to believe that I was talking about this in 2013 , but here it is again! I'm wondering if you can directly implement the Table-per-type or Shared-primary-key method of inheritance in the DAL? [image: subclass-gradstu-sc