fa.jquery admin interface pyramid

144 views
Skip to first unread message

Vince Spicer

unread,
Nov 29, 2011, 11:04:06 AM11/29/11
to forma...@googlegroups.com
I am attempting to get formalchemy with fa.jquery working in a pyramid project.  
I followed the pyramid_formalchemy docs but for some reason the jquery libraries aren't getting included in the interface, no jquery css or js.

Is there a master template that I should put these in? Or is there a step missing?

Thanks in advance.

Gaël Pasgrimaud

unread,
Nov 29, 2011, 4:08:01 PM11/29/11
to forma...@googlegroups.com
Have you added a fanstatic middleware to your stack ?

http://docs.formalchemy.org/fa.jquery/configuration.html

I agree that this pointer should be added to pyramid_formalchemy too.
fanstatic as been introduced in the latest fa.jquery release

> --
> You received this message because you are subscribed to the Google Groups
> "FormAlchemy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/formalchemy/-/mWX_R89CX6YJ.
> To post to this group, send email to forma...@googlegroups.com.
> To unsubscribe from this group, send email to
> formalchemy...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/formalchemy?hl=en.

Vince Spicer

unread,
Nov 30, 2011, 3:27:23 PM11/30/11
to forma...@googlegroups.com
Thanks for the reply.  No I didn't see that.
However with that installed and the example config lines added I'm still not getting any jquery includes.

I also attempted a fresh install and I have the same results. Anything else I may be missing?




Vinces

unread,
Nov 30, 2011, 4:03:40 PM11/30/11
to forma...@googlegroups.com
OK found it.  Thanks for the tip on fanstatic.

The pipeline:main section also has to be mentioned in the docs.

Looks great now that I got it working :)

Thanks

Gaël Pasgrimaud

unread,
Nov 30, 2011, 7:31:03 PM11/30/11
to forma...@googlegroups.com

Hard to say without seeing your project. You can try to have a look at
the demo: https://github.com/FormAlchemy/formalchemy_project

You need:

- a fanstatic middleware with a correct path
- to include formalchemy and fa.jquery
- to declare an admin view

An that's it

You may at least see some js/css tags in your html output.

>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "FormAlchemy" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/formalchemy/-/IPKLH4A9AFcJ.

Reply all
Reply to author
Forward
0 new messages