Discussion:
[jifty-devel] Can't see newly created action in admin console
Colin Kingswood
2008-07-04 09:31:54 UTC
Permalink
Hi

I am a newbie working through the tutorials and docs.

I have created a database through Jifty, and I can update it via the
administration console.

I have now created an action, InputUser, and filled in a schema with three
fields in the schema. I have not added anything to the take action classes
yet.

The tutorial I am looking at says,
"In the admin console all actions are listed"

( http://wiki.kinkeldei-net.de/bin/view/Jifty/JiftyAction )

I can see the two default actions, and the models I have created, but I can
not see my new actions.

Is there a command I need to run to get teh actions to show up ?(like jifty
schema --setup after you create your models).

Colin.
Dobrica Pavlinusic
2008-07-04 13:03:26 UTC
Permalink
Post by Colin Kingswood
Hi
I am a newbie working through the tutorials and docs.
I have created a database through Jifty, and I can update it via the
administration console.
I have now created an action, InputUser, and filled in a schema with three
fields in the schema. I have not added anything to the take action classes
yet.
Attached patch shows all visible action instead of only allowed ones. I
also noticed that actions disappeared a while ago, but I suspect this
was deliberate change (so I was reluctant to commit this change).

See Jifty::API for more info.
--
Dobrica Pavlinusic 2share!2flame ***@rot13.org
Unix addict. Internet consultant. http://www.rot13.org/~dpavlin
Jesse Vincent
2008-07-06 20:45:10 UTC
Permalink
This patch seems pretty reasonable to me. But I know alexmv thought
this through in some detail. Alex: +1? -1?


Jesse
Post by Dobrica Pavlinusic
Post by Colin Kingswood
Hi
I am a newbie working through the tutorials and docs.
I have created a database through Jifty, and I can update it via the
administration console.
I have now created an action, InputUser, and filled in a schema with three
fields in the schema. I have not added anything to the take action classes
yet.
Attached patch shows all visible action instead of only allowed ones. I
also noticed that actions disappeared a while ago, but I suspect this
was deliberate change (so I was reluctant to commit this change).
See Jifty::API for more info.
--
Unix addict. Internet consultant. http://www.rot13.org/~dpavlin
<jifty-all-
actions.diff>_______________________________________________
jifty-devel mailing list
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
Alex Vandiver
2008-07-07 17:53:19 UTC
Permalink
Post by Jesse Vincent
This patch seems pretty reasonable to me. But I know alexmv thought
this through in some detail. Alex: +1? -1?
+1. Jifty::API->actions isn't terribly useful except when you're
talking about things the current request can actually do.
Jifty::API->visible_actions is the list of actions that you _might_ be
able to do. On GET requests, ->actions will be essentially empty, to
prevent someone from making a malicious IMG tag which runs an action on
your jifty site as you.

- Alex

Loading...