My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Last 30 days

  • Dec 13, 2009
    forum_1.0-BETA.zip (Forum1.0-BETA) file uploaded by italo.maia   -  
    Labels: Featured Type-Source OpSys-All
    Labels: Featured Type-Source OpSys-All
  • Dec 11, 2009
    issue 8 (A more idiot friendly start up guide) Status changed by italo.maia   -   Ok folks. I managed to fix the start up guide. Please, try again and tell me the results. And use ForumBR-1.0 ALPHA.
    Status: Started
    Ok folks. I managed to fix the start up guide. Please, try again and tell me the results. And use ForumBR-1.0 ALPHA.
    Status: Started
  • Dec 11, 2009
    issue 2 (Editor para o tópico) Status changed by italo.maia   -   Usando mooeditable.
    Status: Fixed
    Usando mooeditable.
    Status: Fixed
  • Dec 11, 2009
    issue 5 (No login nor register...) Status changed by italo.maia   -  
    Status: Fixed
    Status: Fixed
  • Dec 11, 2009
    issue 6 (No login interface) Status changed by italo.maia   -  
    Status: Fixed
    Status: Fixed
  • Dec 10, 2009
    forum1.0-alpha.7z (Forum1.0-ALPHA) file uploaded by italo.maia   -  
    Labels: Featured
    Labels: Featured

Earlier this year

  • Aug 10, 2009
    issue 8 (A more idiot friendly start up guide) commented on by e.raised.to.pi.i   -   I had the same issue as above, regarding the NoneType not callable error. I looked at the source code, and it appears that the HTML parser "BeautifulSoup" is an unlisted requirement. It can be downloaded here: http://www.crummy.com/software/BeautifulSoup/ From how the source code reads, this was probably intended to be optional instead of required, but the source code seems to have a mistake which causes it in fact to be required instead! Kind of amusing, I guess. So, in fields.py, the "not" needs to be removed from this line: if not BeautifulSoup is None: return value This will cause BeautifulSoup to only be used if it is available. However, be aware that without BeautifulSoup, some validation code will be skipped. It's best to install it. One other thing: After you do this, another problem will come up in that same file. There are two variables, "valid_tags" and "valid_attrs" in the SafeHtmlField in fields.py which are referenced in the clean() function as class variables, but they are instantiated as function variables instead. To correct this problem, cut these two lines out of clean() and paste them in somewhere outside of the function but still within the class, and un-indent them: valid_tags = 'p i strong b u a h1 h2 h3 pre br img strike'.split() valid_attrs = 'href src'.split() After these changes, fields.py should look like this: ------------------------------------------------------- #-*- coding: utf-8 -*- from django import forms try: from BeautifulSoup import BeautifulSoup, Comment except: BeautifulSoup, Comment = None,None class SafeHtmlField(forms.Field): valid_tags = 'p i strong b u a h1 h2 h3 pre br img strike'.split() valid_attrs = 'href src'.split() def clean(self, value): if BeautifulSoup is None: return value content = value soup = BeautifulSoup(content) for comment in soup.findAll( text=lambda text: isinstance(text, Comment)): comment.extract() for tag in soup.findAll(True): if tag.name not in self.__class__.valid_tags: tag.hidden = True tag.attrs = [(attr, val) for attr, val in tag.attrs if attr in self.__class__.valid_attrs] return soup.renderContents().decode('utf8') ------------------------------------------------------- There is one other completely unrelated thing I'll mention while I'm at it. In admin.py, I had to change some lines to get this working in the admin interface. This line: forum_admin = admin.AdminSite() I changed to this: forum_admin = admin.site And I added this line at the end so I could create Forum labels in the admin (this requires importing ForumLabel from models.py at the top of the file, of course): forum_admin.register(ForumLabel) I hope this helps some people trying to get up and running, and I hope I didn't make any unexpected oversights in these code alterations. And thanks very much to the author of this Django app for coding it and making it available. It's a very nice app!
    I had the same issue as above, regarding the NoneType not callable error. I looked at the source code, and it appears that the HTML parser "BeautifulSoup" is an unlisted requirement. It can be downloaded here: http://www.crummy.com/software/BeautifulSoup/ From how the source code reads, this was probably intended to be optional instead of required, but the source code seems to have a mistake which causes it in fact to be required instead! Kind of amusing, I guess. So, in fields.py, the "not" needs to be removed from this line: if not BeautifulSoup is None: return value This will cause BeautifulSoup to only be used if it is available. However, be aware that without BeautifulSoup, some validation code will be skipped. It's best to install it. One other thing: After you do this, another problem will come up in that same file. There are two variables, "valid_tags" and "valid_attrs" in the SafeHtmlField in fields.py which are referenced in the clean() function as class variables, but they are instantiated as function variables instead. To correct this problem, cut these two lines out of clean() and paste them in somewhere outside of the function but still within the class, and un-indent them: valid_tags = 'p i strong b u a h1 h2 h3 pre br img strike'.split() valid_attrs = 'href src'.split() After these changes, fields.py should look like this: ------------------------------------------------------- #-*- coding: utf-8 -*- from django import forms try: from BeautifulSoup import BeautifulSoup, Comment except: BeautifulSoup, Comment = None,None class SafeHtmlField(forms.Field): valid_tags = 'p i strong b u a h1 h2 h3 pre br img strike'.split() valid_attrs = 'href src'.split() def clean(self, value): if BeautifulSoup is None: return value content = value soup = BeautifulSoup(content) for comment in soup.findAll( text=lambda text: isinstance(text, Comment)): comment.extract() for tag in soup.findAll(True): if tag.name not in self.__class__.valid_tags: tag.hidden = True tag.attrs = [(attr, val) for attr, val in tag.attrs if attr in self.__class__.valid_attrs] return soup.renderContents().decode('utf8') ------------------------------------------------------- There is one other completely unrelated thing I'll mention while I'm at it. In admin.py, I had to change some lines to get this working in the admin interface. This line: forum_admin = admin.AdminSite() I changed to this: forum_admin = admin.site And I added this line at the end so I could create Forum labels in the admin (this requires importing ForumLabel from models.py at the top of the file, of course): forum_admin.register(ForumLabel) I hope this helps some people trying to get up and running, and I hope I didn't make any unexpected oversights in these code alterations. And thanks very much to the author of this Django app for coding it and making it available. It's a very nice app!
  • Aug 06, 2009
    issue 8 (A more idiot friendly start up guide) commented on by geopoliticallycorrect   -   Agree that more detail would be helpful. Download django-registration and use for 'maiacorp.registration' I used 404 errors to figure out where to place things in media_root. I was able to create forums and register, but I was not able to create new posts. After clicking on "Save" while creating a new post, I would get: TypeError at /forum/2/topic/create/ 'NoneType' object is not callable Request Method: POST Request URL: http://127.0.0.1:8000/forum/2/topic/create/ Exception Type: TypeError Exception Value: 'NoneType' object is not callable Exception Location: /Library/Python/2.5/site-packages/django/forms/forms.py in full_clean, line 240 Environment: Request Method: POST Request URL: http://127.0.0.1:8000/forum/2/topic/create/ Django Version: 1.1 Python Version: 2.5.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'mysite.forum', 'mysite.register', 'django.contrib.admin'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') Traceback: File "/Library/Python/2.5/site-packages/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/Library/Python/2.5/site-packages/django/contrib/auth/decorators.py" in __call__ 78. return self.view_func(request, *args, **kwargs) File "/Library/Python/2.5/site-packages/django/forms/forms.py" in is_valid 120. return self.is_bound and not bool(self.errors) File "/Library/Python/2.5/site-packages/django/forms/forms.py" in _get_errors 111. self.full_clean() File "/Library/Python/2.5/site-packages/django/forms/forms.py" in full_clean 240. value = field.clean(value) Exception Type: TypeError at /forum/2/topic/create/ Exception Value: 'NoneType' object is not callable
    Agree that more detail would be helpful. Download django-registration and use for 'maiacorp.registration' I used 404 errors to figure out where to place things in media_root. I was able to create forums and register, but I was not able to create new posts. After clicking on "Save" while creating a new post, I would get: TypeError at /forum/2/topic/create/ 'NoneType' object is not callable Request Method: POST Request URL: http://127.0.0.1:8000/forum/2/topic/create/ Exception Type: TypeError Exception Value: 'NoneType' object is not callable Exception Location: /Library/Python/2.5/site-packages/django/forms/forms.py in full_clean, line 240 Environment: Request Method: POST Request URL: http://127.0.0.1:8000/forum/2/topic/create/ Django Version: 1.1 Python Version: 2.5.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'mysite.forum', 'mysite.register', 'django.contrib.admin'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') Traceback: File "/Library/Python/2.5/site-packages/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/Library/Python/2.5/site-packages/django/contrib/auth/decorators.py" in __call__ 78. return self.view_func(request, *args, **kwargs) File "/Library/Python/2.5/site-packages/django/forms/forms.py" in is_valid 120. return self.is_bound and not bool(self.errors) File "/Library/Python/2.5/site-packages/django/forms/forms.py" in _get_errors 111. self.full_clean() File "/Library/Python/2.5/site-packages/django/forms/forms.py" in full_clean 240. value = field.clean(value) Exception Type: TypeError at /forum/2/topic/create/ Exception Value: 'NoneType' object is not callable
  • Aug 05, 2009
    issue 8 (A more idiot friendly start up guide) commented on by robdeals   -   I got to about the same point as keever. Would love to use this forum, but unfortunately I can't get it to work.
    I got to about the same point as keever. Would love to use this forum, but unfortunately I can't get it to work.
  • Apr 02, 2009
    forum_0999.tar.gz (ForumBR 0.995) file uploaded by italo.maia   -  
    Labels: Featured
    Labels: Featured
  • Mar 14, 2009
    forum-0_99.zip (Forum0.99) file uploaded by italo.maia   -  
    Labels: Featured Type-Docs
    Labels: Featured Type-Docs
  • Feb 17, 2009
    issue 8 (A more idiot friendly start up guide) reported by keever   -   I didn't manage to set up your project. I'm new to django, so please forgive me if any of these answers are obvious. My questions: 1) 'maiacorp.registration', # needed Add blueprintcss 0.7.x to your media_root in a folder called "css". required Add mootools 1.2.x to your media_root in a folder called "js" These aren't apart of your source. If it's outside of the source, would you mind linking to it/explaining what exactly it is you want? The mootools file I found is one file, but the blueprintcss seems to be an entire package. Is that what you wanted? 2) Once everything is installed right, how about a setup guide? I think I created a forum through the forum/admin interface, but it still doesn't have a "create new post" button (not that I'm sure it's installed right).
    I didn't manage to set up your project. I'm new to django, so please forgive me if any of these answers are obvious. My questions: 1) 'maiacorp.registration', # needed Add blueprintcss 0.7.x to your media_root in a folder called "css". required Add mootools 1.2.x to your media_root in a folder called "js" These aren't apart of your source. If it's outside of the source, would you mind linking to it/explaining what exactly it is you want? The mootools file I found is one file, but the blueprintcss seems to be an entire package. Is that what you wanted? 2) Once everything is installed right, how about a setup guide? I think I created a forum through the forum/admin interface, but it still doesn't have a "create new post" button (not that I'm sure it's installed right).

Older

  • Nov 04, 2008
    r67 (Tornando XHTML valid) committed by italo.maia   -   Tornando XHTML valid
    Tornando XHTML valid
  • Oct 20, 2008
    r66 (get_absolute_url adicionado) committed by italo.maia   -   get_absolute_url adicionado
    get_absolute_url adicionado
  • Oct 20, 2008
    r65 (nomsg) committed by italo.maia   -   nomsg
    nomsg
  • Sep 17, 2008
    r64 (Forum config inline editing, now ; )) committed by italo.maia   -   Forum config inline editing, now ; )
    Forum config inline editing, now ; )
  • Sep 13, 2008
    r63 (Traduzindo...) committed by italo.maia   -   Traduzindo...
    Traduzindo...
  • Sep 13, 2008
    r62 (small change) committed by italo.maia   -   small change
    small change
  • Sep 13, 2008
    ForumBR (One-sentence summary of this page.) Wiki page edited by italo.maia
  • Sep 13, 2008
    r60 (Mais i18n) committed by italo.maia   -   Mais i18n
    Mais i18n
  • Sep 13, 2008
    r59 (Views counter agora funciona. Mudanças no auth para aceitar ...) committed by italo.maia   -   Views counter agora funciona. Mudanças no auth para aceitar códigos e agora os foruns são criados abertos por default.
    Views counter agora funciona. Mudanças no auth para aceitar códigos e agora os foruns são criados abertos por default.
  • Sep 13, 2008
    r58 (Coloquei um novo tipo de botaum e ajeitei parte do html com ...) committed by italo.maia   -   Coloquei um novo tipo de botaum e ajeitei parte do html com clearfix
    Coloquei um novo tipo de botaum e ajeitei parte do html com clearfix
  • Sep 13, 2008
    r57 (atualizando) committed by italo.maia   -   atualizando
    atualizando
  • Sep 13, 2008
    r56 (atulizando) committed by italo.maia   -   atulizando
    atulizando
  • Sep 13, 2008
    r55 (i18n) committed by italo.maia   -   i18n
    i18n
  • Sep 13, 2008
    r54 committed by italo.maia
  • Sep 13, 2008
    r53 (Traduções! =D) committed by italo.maia   -   Traduções! =D
    Traduções! =D
  • Sep 13, 2008
    r52 (Adicionando i18n) committed by italo.maia   -   Adicionando i18n
    Adicionando i18n
  • Sep 13, 2008
    r51 committed by italo.maia
  • Sep 13, 2008
    r50 (Botão de novo tópico em cima e em baixo agora. Mas ainda ach...) committed by italo.maia   -   Botão de novo tópico em cima e em baixo agora. Mas ainda acho que pode melhorar
    Botão de novo tópico em cima e em baixo agora. Mas ainda acho que pode melhorar
  • Sep 13, 2008
    r49 (Ajeitei os botões e a margem do texto) committed by italo.maia   -   Ajeitei os botões e a margem do texto
    Ajeitei os botões e a margem do texto
  • Sep 13, 2008
    r48 (Melhorias diversas) committed by italo.maia   -   Melhorias diversas
    Melhorias diversas
  • Sep 13, 2008
    r47 (Dicas dadas pelo Herculano) committed by italo.maia   -   Dicas dadas pelo Herculano
    Dicas dadas pelo Herculano
  • Sep 13, 2008
    r46 (Adicionando os links first e last para o forward_bar) committed by italo.maia   -   Adicionando os links first e last para o forward_bar
    Adicionando os links first e last para o forward_bar
  • Sep 07, 2008
    r45 (Changed the url for topic and forum. I think it looks pretti...) committed by italo.maia   -   Changed the url for topic and forum. I think it looks prettier this way.
    Changed the url for topic and forum. I think it looks prettier this way.
  • Sep 06, 2008
    r44 (eliminando pagina antiga) committed by italo.maia   -   eliminando pagina antiga
    eliminando pagina antiga
  • Sep 02, 2008
    r43 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Sep 02, 2008
    r42 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Aug 30, 2008
    r41 (eliminando pagina antiga) committed by italo.maia   -   eliminando pagina antiga
    eliminando pagina antiga
  • Aug 30, 2008
    r40 (eliminando pagina antiga) committed by italo.maia   -   eliminando pagina antiga
    eliminando pagina antiga
  • Aug 30, 2008
    r39 (eliminando pagina antiga) committed by italo.maia   -   eliminando pagina antiga
    eliminando pagina antiga
  • Aug 30, 2008
    r38 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Aug 30, 2008
    r37 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Aug 30, 2008
    r36 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Aug 30, 2008
    r35 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Aug 25, 2008
    r34 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Aug 25, 2008
    r33 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Aug 23, 2008
    r32 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Aug 23, 2008
    r31 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
  • Aug 23, 2008
    r30 (ForumBR 0.9 updates) committed by italo.maia   -   ForumBR 0.9 updates
    ForumBR 0.9 updates
 
Hosted by Google Code