7
1

The answer to my previous question indicates that account association could be achieved by building a module. I had a quick look in the wiki but it is currently bare.

Are there any docs that would help a potential module builder to get started?

asked 19 Apr '10, 07:06

Rich%20Seller's gravatar image

Rich Seller
1.8k154047
accept rate: 23%


Not yet, we're working hard to create a stable release in the next days, possibly more than a week, and we plan to finish the documentation after that. There might be some changes in the api in the mean time, and would be a duplication of efforts to keep development and documentation in sync.

EDIT:

We're currently making the final touches in the module API and should create the documentation accordingly.

link

answered 19 Apr '10, 07:13

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

edited 18 Jun '10, 10:18

Thanks for the update. I'll keep an eye on it for now then

(19 Apr '10, 07:18) Rich Seller

I know this is not on your priority list, but so excited at finding OSQA, I want to get started writing a module now! If those with more expertise have time to add pointers, that would be helpful.

  1. Create a new directory in /forum_modules (I copied books)
  2. Amend .init.py and enter name for module as required
  3. Add URLs - module name is NOT automatically included

    eg. for /dosomething/

    urlpatterns = patterns('', url(r'^%s$' % _('dosomething/'), app.mymodule, name='dosomething'), )

  4. Add models/views etc.

  5. syncdb if models changed
  6. module should now be available <----- only it isn't being read. Have added syntax errors and not being pickedup

link
This answer is marked "community wiki".

answered 18 Jun '10, 05:40

Phoebe's gravatar image

Phoebe
4628
accept rate: 0%

Hey @Phoebe, the modules are designed to fail silently on load. There's probably some import error going on. Currently there's no good way to know it without manual testing, but I'm planning to allow those errors to flow in case debug is turned on. Meanwhile, please pop in in the osqa chat room http://meta.osqa.net/questions/79/is-there-an-online-chat-room-or-irc-channel-for-osqa and I'll be glad to give you some hints.

(18 Jun '10, 10:22) Hernani Cerq... ♦♦

Going to fix my local development environment and get PyCharm running again then I can do a bit of debubbing. Am off out now but will take you up on your kind off of help later. You on US time?

(18 Jun '10, 11:11) Phoebe

No, I'm on GMT, but since I work for a US company I always stay way past bed time :D

(18 Jun '10, 11:17) Hernani Cerq... ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×298
×6
×5
×3

Asked: 19 Apr '10, 07:06

Seen: 944 times

Last updated: 18 Jun '10, 11:17

powered by OSQA