Few general questions about Poolyx/Nive

10 views
Skip to first unread message

FFFFFFFab

unread,
Nov 8, 2012, 12:02:10 PM11/8/12
to pooly...@googlegroups.com
Hello,

First, thanks to share your work with Nive, it seems to be a very polished tool to build websites with no effort. My first impression was "whaou, pretty coooool". I very like its design and it seems to be modular.
I have few questions about :
- is it the good place to talk about it, follow news, etc... because this group seems inactive ?
- are you the only contributor of this project ?
- is it in active developpement, any roadmap ?
- what about l10n (possibilities to manage translations of content to maintain a multi-languages website) ?
- is there a way to use another persistence system ? Why you don't use SQLAlchemy ?
- is it possible, if we need, to use another form library than reform ?
- is there a special way to manage custom JS or include specific JS library ? Is it possible to use Fanstatic ?

Thanks in advance,

Fab.

Arndt Droullier

unread,
Nov 9, 2012, 9:12:41 AM11/9/12
to pooly...@googlegroups.com
Hi,
ah, good questions. I think they could go copy&paste to the FAQ section if you don't mind.

I'm currently preparing the next release and only a few days ago published the pypi.python.org, github url, new website
and so on. So there was no real public development. Right now I'm preparing a few statements and will make the release public.
And that is the roadmap, encourage people to try and use the whole thing.  
If it's possible to rename a google group this will be used otherwise I will create a new one. But for now we can use it.

Now you're a few days ahead of me with your questions and I don't have all the answers now. 

Here is one link, it's not finished yet but may help to understand the pyramid integration:

In short: You should be able to use anything you can use in pyramid. So you can use another form library or fantastic.
At least in theory. There may be a few issues here and there.

Though one thing is not possible: The default, auto generated forms use reform and you can not simply replace it.

I'll keep you updated.

Arndt,

2012/11/8 FFFFFFFab <fabien.c...@gmail.com>



--
DV Electric / Arndt Droullier / Nive cms cms.nive.co

Fabien Castarède

unread,
Nov 9, 2012, 1:21:48 PM11/9/12
to pooly...@googlegroups.com
Hi,

Thanks for your answer. 
Yes a FAQ is a good idea, no problem.

Just a last question (for the moment ;-)) to continue my tests of Nive, how can I include a column element. I just found a quick statement in the documentation that says it happens in the template file and naively I copied/pasted this in index.pt

<span tal:define="column python:context.GetColumn('right')"
      tal:condition="python:column"
      tal:replace="structure view.RenderView(column)"/>

but nothing happened… I think certainly that it needs to do a configuration somewhere or declare something (view ?) ?

Thanks, and good luck for developing next release.

Fab.

Arndt Droullier

unread,
Nov 12, 2012, 5:30:30 AM11/12/12
to pooly...@googlegroups.com
The edit buttons have to placed in the template manually:

   <span tal:condition="python:cmsview"
         tal:replace="structure cmsview.cmsEditorBlocks(context.GetPage().GetColumn(u'right'))" />  

You can put the code somewhere at the end of the template after 

   <span tal:condition="python:cmsview"
         tal:replace="structure cmsview.cmsMain(context)" />

And I see, the documentation doesn't say so.

Arndt.



2012/11/9 Fabien Castarède <fabien.c...@gmail.com>

Fabien Castarède

unread,
Nov 12, 2012, 6:26:15 AM11/12/12
to pooly...@googlegroups.com
Le 12 nov. 2012 à 11:30, Arndt Droullier <ar...@dvelectric.de> a écrit :

The edit buttons have to placed in the template manually:

   <span tal:condition="python:cmsview"
         tal:replace="structure cmsview.cmsEditorBlocks(context.GetPage().GetColumn(u'right'))" />  

This is already present in the index.pt.
I also added this :

  <span tal:define="column python:context.GetColumn('right')"
      tal:condition="python:column"
      tal:replace="structure view.RenderView(column)"/>

But I see nothing… Do I have to see a column where I can add page elements when I browse the website ? Or this is done in other way ?

Arndt Droullier

unread,
Nov 12, 2012, 7:22:20 AM11/12/12
to pooly...@googlegroups.com
I'm sorry, you also need to add another line.

  <span tal:condition="python:cmsview"
        tal:replace="structure cmsview.editBlockColumn(page=context, column=context.GetColumn(u'right'), name=u'right')" />  

So the foot of the template may look like this: 

  <div class="footer"> 

  <tal:block metal:define-slot="right">
    <span tal:define="column python:context.GetPage().GetColumn(u'right')"
          tal:condition="python:column"
          tal:replace="structure view.RenderView(column)"/>
  </tal:block>
  <br style="clear:both"/>
  <span tal:condition="python:cmsview"
        tal:replace="structure cmsview.editBlockColumn(page=context, column=context.GetColumn(u'right'), name=u'right')" />  

  </div>
</div>
</div>

<span tal:condition="python:cmsview"
      tal:replace="structure cmsview.cmsMain(context)" />
<span tal:condition="python:cmsview"
      tal:replace="structure cmsview.cmsEditorBlocks(context)" />  
<span tal:condition="python:cmsview"
      tal:replace="structure cmsview.cmsEditorBlocks(context.GetPage().GetColumn(u'right'))" />  
</body>
</html>


This should render a rect with edit options for the column, similar to the one below the content area. But this needs a few improvements, for example the column type left/right has to be selected manually in the add column form. 

Arndt.

2012/11/12 Fabien Castarède <fabien.c...@gmail.com>

Fabien Castarède

unread,
Nov 12, 2012, 10:55:05 AM11/12/12
to pooly...@googlegroups.com
Ok, Thanks, now it's working. Remains just to correctly stylize the template because the column is placed below main on the whole page's width.
Reply all
Reply to author
Forward
0 new messages