[jifty-devel] Authentication::Password instructions in
Manual::AccessControl not producing users table in db
Matthew Lenz
matthew at nocturnal.org
Mon Jul 2 10:12:23 EDT 2007
On Mon, 2007-07-02 at 09:04 -0500, Andrew Sterling Hanenkamp wrote:
> Yeah, if you add a new model to the database, you need to bump the
> database version in your config.yml file, or it won't attempt to
> update the database. In this case, you should also define the since
> method on your model:
I've always done that.
> sub since { return '0.0.2'; }
Didn't know about this though. Is it necessary? I thought Jifty
examined the current db and applied any missing columns defined in the
current model?
> When developing and you don't want to do that, you need to blow away
> the database.
>
> On 7/2/07, Matthew Lenz <matthew at nocturnal.org> wrote:
> On Mon, 2007-07-02 at 07:51 -0500, Andrew Sterling Hanenkamp
> wrote:
> > I can only guess that their's something minute wrong with
> your model.
> > Can you post it? If that's not the case, then something
> could be wrong
> > elsewhere in your app that's causing a failure that's not
> being
> > reported. There's also a chance that something about those
> plugins is
> > broken in trunk.
> >
> > When schema --setup runs, you should see a line in the
> output like:
> >
> > INFO - Using App::Model::User, as it appears to be new.
> >
> > and it should end with:
> >
> > INFO - Set up version v0.0.1, jifty version 0.701290
> >
> > (where your actual version numbers, at least for jifty,
> should be
> > different).
> >
> > If you don't see that output, something isn't working
> correctly (or
> > you've turned the log level up to WARN or higher, which I'd
> recommend
> > against during development).
>
> I was able to get it to generate the users table by blowing
> away the
> current db and having it regenerate everything. I think that
> indicates
> that there wasn't anything wrong with the model. I got it
> working so
> I'm happy atm.
>
> > Cheers,
> > Andrew
> >
> > On 7/1/07, Matthew Lenz <matthew at nocturnal.org> wrote:
> > On Mon, 2007-07-02 at 01:13 +0100, Chia-liang Kao
> wrote:
> > > 於 日,2007-07-01 於 18:13 -0500,Matthew Lenz 提
> 到:
> > > > Following instructions in the trunk version of
> > Manual::AccessControl
> > > > which details the use of the
> Authentication::Password
> > plugin. No errors
> > > > are returned upon schema --setup but looking in
> the db
> > there is no users
> > > > table (and the interface confirms the problem
> when
> > attempting to sign
> > > > up).
> > > >
> > > > I assume that additional columns are not a
> requirement in
> > the
> > > > *::Model::User when attempting to use this
> plugin?
> > >
> > > You probably want to use
> > Jifty::Plugin::User::Mixin::Model::User from
> > > your user model.
> > >
> > > Cheers,
> > > CLK
> >
> > Yeah I already have:
> >
> > use Jifty::Plugin::User::Mixin::Model::User;
> > use
> >
> Jifty::Plugin::Authentication::Password::Mixin::Model::User;
> >
> > Per the instructions in Manual::AccessControl
> >
> > >
> > > _______________________________________________
> > > jifty-devel mailing list
> > > jifty-devel at lists.jifty.org
> > >
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> >
> > _______________________________________________
> > jifty-devel mailing list
> > jifty-devel at lists.jifty.org
> >
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> >
> > _______________________________________________
> > jifty-devel mailing list
> > jifty-devel at lists.jifty.org
> > http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
>
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
>
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
More information about the jifty-devel
mailing list