|
Hi all,
There is now a better Grails sample app available in the "samples\simple-cms" directory. You guessed it, its a CMS and it demonstrates most of Grails' features in action (GORM, validation, scaffolding, ajax, dynamic tags etc.). Please read the README.txt for instructions on how to use it Cheers Graeme |
|
On 5/10/06, Graeme Rocher <[hidden email]> wrote:
> There is now a better Grails sample app available in the > "samples\simple-cms" directory. A full URL would be helpful for those of us just joining the party :-) -- Hassan Schroeder ------------------------ [hidden email] |
|
In reply to this post by graemer
I tried to run it, but am getting class not found exceptions. do we need the .2 snapshot?
On 5/10/06, Graeme Rocher <[hidden email]> wrote: Hi all, -- Regards, Shawn |
|
I had the same issue, and yes had to grab the latest snapshop from CVS
and build it. Make sure you're doing "grails init" before trying to run it as well. shawn mcdermott wrote: > I tried to run it, but am getting class not found exceptions. do we > need the .2 snapshot? > > On 5/10/06, *Graeme Rocher* < [hidden email] > <mailto:[hidden email]>> wrote: > > Hi all, > > There is now a better Grails sample app available in the > "samples\simple-cms" directory. You guessed it, its a CMS and it > demonstrates most of Grails' features in action (GORM, validation, > scaffolding, ajax, dynamic tags etc.). > > Please read the README.txt for instructions on how to use it > > Cheers > Graeme > > > > > -- > Regards, > Shawn |
|
In reply to this post by Hassan Schroeder-2
Probably the 'easiest' way is just to head over to the web-based cvs at
http://cvs.grails.codehaus.org/viewrep/grails/grails, browse to the indicated directory and click on your desired archive type in the lower-left corner of the window. Hassan Schroeder wrote: > On 5/10/06, Graeme Rocher <[hidden email]> wrote: > >> There is now a better Grails sample app available in the >> "samples\simple-cms" directory. > > A full URL would be helpful for those of us just joining the party :-) > > -- > Hassan Schroeder ------------------------ [hidden email] > |
|
doing that now. thanks. I did do the grails init and that ran fine
On 5/10/06, Nathan Middleton <[hidden email]> wrote: Probably the 'easiest' way is just to head over to the web-based cvs at -- Regards, Shawn |
|
that did it. thanks much. Graeme, great sample app. I am going to pick it apart and see what I can learn. thanks again.
On 5/10/06, shawn mcdermott <
[hidden email]> wrote:
-- Regards, Shawn |
|
In reply to this post by graemer
Graeme Rocher wrote:
> Hi all, > > There is now a better Grails sample app available in the > "samples\simple-cms" directory. You guessed it, its a CMS and it > demonstrates most of Grails' features in action (GORM, validation, > scaffolding, ajax, dynamic tags etc.). > > Please read the README.txt for instructions on how to use it > > Cheers > Graeme I am wading through the new app and I have a couple of questions. In BaseController.groovy the auth() method contains the following... if(!session.site) { def s = Site.findByDomain(request.serverName) if(!s) Site.findByName(Site.DEFAULT) session.site = s } Is that call to findByName doing anything meaningful? Is there some groovy magic that assigns the result of that call to s? In that same class what is the purpose of the testSysAdmin(), testEditor() and testApprover() methods? Thanks. jb -- Jeff Brown [hidden email] Principal Software Engineer Object Computing Inc. http://www.ociweb.com/ Autism Strikes 1 in 250 Find The Cause ~ Find The Cure http://www.jeffandbetsy.net/walkfar2005/ http://www.naar.org/ |
|
On 5/11/06, Jeff Brown <[hidden email]> wrote:
> Graeme Rocher wrote: > > Hi all, > > > > There is now a better Grails sample app available in the > > "samples\simple-cms" directory. You guessed it, its a CMS and it > > demonstrates most of Grails' features in action (GORM, validation, > > scaffolding, ajax, dynamic tags etc.). > > > > Please read the README.txt for instructions on how to use it > > > > Cheers > > Graeme > > I am wading through the new app and I have a couple of questions. > > In BaseController.groovy the auth() method contains the following... > > if(!session.site) { > def s = Site.findByDomain(request.serverName) > if(!s) Site.findByName(Site.DEFAULT) > session.site = s > } > is configured correctly it will find the right site) otherwise it will lookup the default site by name. These are dynamic methods querying the db based on the property names of the Site class > > Is that call to findByName doing anything meaningful? Is there some > groovy magic that assigns the result of that call to s? > > In that same class what is the purpose of the testSysAdmin(), > testEditor() and testApprover() methods? > For my testing purposes, just to check that the different system roles behave as expected as assigned a different before interceptor to these methods Cheers Graeme > Thanks. > > > > jb > > -- > Jeff Brown > [hidden email] > Principal Software Engineer > Object Computing Inc. > http://www.ociweb.com/ > > Autism Strikes 1 in 250 > Find The Cause ~ Find The Cure > http://www.jeffandbetsy.net/walkfar2005/ > http://www.naar.org/ > > |
|
Graeme Rocher wrote:
>> >> In BaseController.groovy the auth() method contains the following... >> >> if(!session.site) { >> def s = Site.findByDomain(request.serverName) >> if(!s) Site.findByName(Site.DEFAULT) >> session.site = s >> } >> > Basically the CMS will attempt to lookup a site by domain name (if DNS > is configured correctly it will find the right site) otherwise it will > lookup the default site by name. These are dynamic methods querying > the db based on the property names of the Site class > I understand that Site.findByName(Site.DEFAULT) is a dynamic method for looking up a site. The part I don't understand is it doesn't look like the return value from Site.findByName(Site.DEFAULT) is assigned to anything. There is no "s = " in front of that. I am wondering if there is some groovy-ism that I am not aware of that causes the return value from that method to be assigned to s. I might have expected something like this... if(!session.site) { def s = Site.findByDomain(request.serverName) if(!s) { s = Site.findByName(Site.DEFAULT) } session.site = s } Thanks for your time. jb -- Jeff Brown [hidden email] Principal Software Engineer Object Computing Inc. http://www.ociweb.com/ Autism Strikes 1 in 250 Find The Cause ~ Find The Cure http://www.jeffandbetsy.net/walkfar2005/ http://www.naar.org/ |
|
On 5/11/06, Jeff Brown <[hidden email]> wrote:
> Graeme Rocher wrote: > >> > >> In BaseController.groovy the auth() method contains the following... > >> > >> if(!session.site) { > >> def s = Site.findByDomain(request.serverName) > >> if(!s) Site.findByName(Site.DEFAULT) > >> session.site = s > >> } > >> > > Basically the CMS will attempt to lookup a site by domain name (if DNS > > is configured correctly it will find the right site) otherwise it will > > lookup the default site by name. These are dynamic methods querying > > the db based on the property names of the Site class > > > > I understand that Site.findByName(Site.DEFAULT) is a dynamic method for > looking up a site. The part I don't understand is it doesn't look like > the return value from Site.findByName(Site.DEFAULT) is assigned to > anything. There is no "s = " in front of that. I am wondering if there > is some groovy-ism that I am not aware of that causes the return value > from that method to be assigned to s. I might have expected something > like this... > > if(!session.site) { > def s = Site.findByDomain(request.serverName) > if(!s) { > s = Site.findByName(Site.DEFAULT) > } > session.site = s > } > > > Thanks for your time. Good spot! Graeme > > > > jb > > -- > Jeff Brown > [hidden email] > Principal Software Engineer > Object Computing Inc. > http://www.ociweb.com/ > > Autism Strikes 1 in 250 > Find The Cause ~ Find The Cure > http://www.jeffandbetsy.net/walkfar2005/ > http://www.naar.org/ > > |
|
In reply to this post by graemer
Hello
I'm doing my first steps with grails and I'm very impressed so far. Unfortunately I don't manage to checkout the sample (cms). I'm working with tortoiseCVS on Windows and I stick excatly to the manual on http://grails.codehaus.org/CVS. But that's what I get: C:\Programs\TortoiseCVS>cvs -d :pserver:anonymous@cvs.grails.codehaus.org:/home /projects/grails/scm login Logging in to :pserver:anonymous@cvs.grails.codehaus.org:2401:/home/projects/gra ils/scm CVS Password: [I clicked ENTER] connect to cvs.grails.codehaus.org:2401 failed: Es konnte keine Verbindung herge stellt werden, da der Zielcomputer die Verbindung verweigerte. [en. no connection, server refused connection] |
|
With the server problems on Codehaus, perhaps the CVS connection string might change to:
:pserver:[hidden email]:/services/cvs/grails/ Graeme, how is it going on your side regarding CVS? On 5/25/06, Ben_Jakob <[hidden email]> wrote:
-- Guillaume Laforge Groovy Project Manager http://glaforge.free.fr/blog/groovy |
|
In reply to this post by Ben_Jakob
btw., I'm aware of the codehaus server problems, but because the webview of the CVS (http://cvs.grails.codehaus.org/viewrep/grails/grails) is running properly, I think it must be something else.
thanks for your help Ben |
|
No anonymous CVS access is currently not working at the codehaus, you
can download a 0.2 snapshot from the build server which should have the sample app in it Graeme On 5/25/06, Ben_Jakob <[hidden email]> wrote: > > btw., I'm aware of the codehaus server problems, but because the webview of > the CVS (http://cvs.grails.codehaus.org/viewrep/grails/grails) is running > properly, I think it must be something else. > > thanks for your help > Ben > -- > View this message in context: http://www.nabble.com/Improved+Grails+Sample+app-t1593470.html#a4565856 > Sent from the grails - user forum at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
