Changeset 770


Ignore:
Timestamp:
Aug 3, 2010, 2:00:35 PM (10 years ago)
Author:
duh
Message:
  • upgraded nimble to 0.4-SNAPSHOT
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/application.properties

    r707 r770  
    11#Grails Metadata file
    2 #Wed Jul 21 11:55:38 CEST 2010
     2#Tue Aug 03 13:47:26 CEST 2010
    33app.grails.version=1.3.3
    44app.name=gscf
     
    1111plugins.mail=0.9
    1212plugins.nadd-neutralizer=0.3
    13 plugins.nimble=0.3-SNAPSHOT
     13plugins.nimble=0.4-SNAPSHOT
    1414plugins.searchable=0.5.5
    1515plugins.shiro=1.0.1
  • trunk/grails-app/conf/NimbleBootStrap.groovy

    r247 r770  
    11/*
    22 *  Nimble, an extensive application base for Grails
    3  *  Copyright (C) 2009 Intient Pty Ltd
     3 *  Copyright (C) 2010 Bradley Beddoes
    44 *
    55 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    1717 
    1818
    19 import intient.nimble.InstanceGenerator
     19import grails.plugins.nimble.InstanceGenerator
    2020
    21 import intient.nimble.domain.LevelPermission
    22 import intient.nimble.domain.Role
    23 import intient.nimble.domain.Group
    24 import intient.nimble.service.AdminsService
    25 import intient.nimble.service.UserService
     21import grails.plugins.nimble.core.LevelPermission
     22import grails.plugins.nimble.core.Role
     23import grails.plugins.nimble.core.Group
     24import grails.plugins.nimble.core.AdminsService
     25import grails.plugins.nimble.core.UserService
    2626
    2727/*
     
    4646
    4747    // Execute any custom Nimble related BootStrap for your application below
    48     if (nimble.User.count() == 0) {
    49         println ".bootstrapping nimble"
    5048
    51         // Create example User account
    52         def user = InstanceGenerator.user()
    53         user.username = "user"
    54         user.pass = 'useR123!'
    55         user.passConfirm = 'useR123!'
    56         user.enabled = true
     49    // Create example User account
     50    def user = InstanceGenerator.user()
     51    user.username = "user"
     52    user.pass = 'useR123!'
     53    user.passConfirm = 'useR123!'
     54    user.enabled = true
    5755
    58         def userProfile = InstanceGenerator.profile()
    59         userProfile.fullName = "Test User"
    60         userProfile.owner = user
    61         user.profile = userProfile
     56    def userProfile = InstanceGenerator.profile()
     57    userProfile.fullName = "Test User"
     58    userProfile.owner = user
     59    user.profile = userProfile
    6260
    63         def savedUser = userService.createUser(user)
    64         if (savedUser.hasErrors()) {
    65           savedUser.errors.each {
    66             log.error(it)
    67           }
    68           throw new RuntimeException("Error creating example user")
    69         }
     61    def savedUser = userService.createUser(user)
     62    if (savedUser.hasErrors()) {
     63      savedUser.errors.each {
     64        log.error(it)
     65      }
     66      throw new RuntimeException("Error creating example user")
     67    }
    7068
    71         // Create example Administrative account
    72         def admins = Role.findByName(AdminsService.ADMIN_ROLE)
    73         def admin = InstanceGenerator.user()
    74         admin.username = "admin"
    75         admin.pass = "admiN123!"
    76         admin.passConfirm = "admiN123!"
    77         admin.enabled = true
     69    // Create example Administrative account
     70    def admins = Role.findByName(AdminsService.ADMIN_ROLE)
     71    def admin = InstanceGenerator.user()
     72    admin.username = "admin"
     73    admin.pass = "admiN123!"
     74    admin.passConfirm = "admiN123!"
     75    admin.enabled = true
    7876
    79         def adminProfile = InstanceGenerator.profile()
    80         adminProfile.fullName = "Administrator"
    81         adminProfile.owner = admin
    82         admin.profile = adminProfile
     77    def adminProfile = InstanceGenerator.profile()
     78    adminProfile.fullName = "Administrator"
     79    adminProfile.owner = admin
     80    admin.profile = adminProfile
    8381
    84         def savedAdmin = userService.createUser(admin)
    85         if (savedAdmin.hasErrors()) {
    86           savedAdmin.errors.each {
    87             log.error(it)
    88           }
    89           throw new RuntimeException("Error creating administrator")
    90         }
     82    def savedAdmin = userService.createUser(admin)
     83    if (savedAdmin.hasErrors()) {
     84      savedAdmin.errors.each {
     85        log.error(it)
     86      }
     87      throw new RuntimeException("Error creating administrator")
     88    }
    9189
    92         adminsService.add(admin)
    93 
    94     }
     90    adminsService.add(admin)
    9591  }
    9692
  • trunk/grails-app/conf/NimbleConfig.groovy

    r247 r770  
    11/*
    22 *  Nimble, an extensive application base for Grails
    3  *  Copyright (C) 2009 Intient Pty Ltd
     3 *  Copyright (C) 2010 Bradley Beddoes
    44 *
    55 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    1616 */
    1717
     18// change the JavaScript library that grails & nimble use by adjusting this value
     19// valid values: jquery, mootools prototype
     20grails.views.javascript.library='jquery'
     21
    1822nimble {
    19     layout {
    20         application = "main"
    21         administration = "nimble"
    22     }
    2323    organization {
    2424        name = ""
     
    2828        logosmall = ""
    2929        url = ""
     30    }
     31
     32        layout {
     33        application = 'app'
     34        administration = 'admin'
     35                login = 'app'
     36    }
     37
     38    resources {
     39        jslibrary = grails.views.javascript.library
    3040    }
    3141
     
    5767
    5868    messaging {
     69                enabled = false
     70               
    5971        registration {
    6072            subject = "Your new account is ready!"
     
    98110                noscript = true
    99111            }
     112
     113            resources {
     114                jslibrary = grails.views.javascript.library
     115                usejsdev = true
     116                usecssdev = true
     117            }
    100118        }
    101119    }
     
    113131                noscript = true
    114132            }
     133
     134            resources {
     135                jslibrary = grails.views.javascript.library
     136                usejsdev = false
     137                usecssdev = false
     138            }
    115139        }
    116140    }
  • trunk/grails-app/conf/NimbleSecurityFilters.groovy

    r247 r770  
    11/*
    22 *  Nimble, an extensive application base for Grails
    3  *  Copyright (C) 2009 Intient Pty Ltd
     3 *  Copyright (C) 2010 Bradley Beddoes
    44 *
    55 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    1515 *  limitations under the License.
    1616 */
    17 import intient.nimble.service.AdminsService
     17import grails.plugins.nimble.core.AdminsService
    1818
    1919/**
     
    2222 * @author Bradley Beddoes
    2323 */
    24 public class NimbleSecurityFilters extends intient.nimble.security.NimbleFilterBase {
     24public class NimbleSecurityFilters extends grails.plugins.nimble.security.NimbleFilterBase {
    2525
    2626    def filters = {
     
    3131                accessControl {
    3232                    true
    33                 }
    34             }
    35         }
    36 
    37         profilesecure(controller: "profile") {
    38             before = {
    39                 if(!actionName.equals('miniprofile')) {
    40                     accessControl {
    41                         true
    42                     }
    4333                }
    4434            }
  • trunk/grails-app/conf/NimbleUrlMappings.groovy

    r247 r770  
    11/*
    22 *  Nimble, an extensive application base for Grails
    3  *  Copyright (C) 2009 Intient Pty Ltd
     3 *  Copyright (C) 2010 Bradley Beddoes
    44 *
    55 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    103103            controller = "auth"
    104104        }
    105 
    106     "/profile/$action?/$id?" {
    107             controller = "profile"
    108         }
    109105    }
    110106}
  • trunk/grails-app/domain/nimble/Profile.groovy

    r496 r770  
     1/**
     2 * Nimble Profile Domain Class
     3 *
     4 * @see http://www.grails.org/plugin/nimble
     5 *
     6 * Revision information:
     7 * $Rev$
     8 * $Author$
     9 * $Date$
     10 */
    111
    212package nimble
    313
    4 class Profile extends intient.nimble.domain.ProfileBase {
    5 
     14class Profile extends grails.plugins.nimble.core.ProfileBase {
    615        // Extend ProfileBase with your custom values here
    7 
    816}
  • trunk/grails-app/domain/nimble/User.groovy

    r496 r770  
     1/**
     2 * Nimble Profile Domain Class
     3 *
     4 * @see http://www.grails.org/plugin/nimble
     5 *
     6 * Revision information:
     7 * $Rev$
     8 * $Author$
     9 * $Date$
     10 */
     11
    112package nimble
    213
    3 class User extends intient.nimble.domain.UserBase {
    4 
    5         // Extend UserBase with your custom values here
    6 
    7     def String toString() {
    8         return this.username;
    9     }
    10 
    11 
     14class User extends grails.plugins.nimble.core.UserBase {
     15        def String toString() {
     16                return this.username;
     17        }
    1218}
Note: See TracChangeset for help on using the changeset viewer.