[Zotonic-Dev] How can I make two indexes in one category?

2017-09-29 Thread heiheshang
now I can create one table for one category. How can I create multiple pivot tables? Is it not always convenient to have one table. observe_custom_pivot returns tuple for one table.Of course I can create indexes for several fields in one table, but this is not always convenient. -- --- You

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Marc Worrell
Can mix build rebar3 based apps? If so then we can just provide a mix based project. I am also thinking of using the introspection (we are using that for notify observers) to discover if a module, filter, action or other type of Zotonic callback module is an Elixir module. And if so we could

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Jake Morrison
On Fri, Sep 29, 2017 at 08:12:53AM +, Marc Worrell wrote: > Thinking of it… we do use a lot of records for all notifications and > postbacks. > > Are those supported in Elixir? Records are supported, here is the Elixir syntax: https://hexdocs.pm/elixir/Record.html Maps are generally easier

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Marc Worrell
> On 29 Sep 2017, at 10:38, Allen Wyma wrote: > > Ganz geil! How to connect? That is German, actually. The team is quite present on gitter. https://gitter.im/zotonic/zotonic Maas-Maarten, David and Arthur are there quite regularly.

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Allen Wyma
Ganz geil! How to connect? On Fri, Sep 29, 2017 at 4:13 PM Marc Worrell wrote: > On 29 Sep 2017, at 10:11, Allen Wyma wrote: > > I’m more than willing to help out in exchange for some Dutch help? > Language 4 language exchange? :) > > > LOL, quite some

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Marc Worrell
> On 29 Sep 2017, at 10:11, Allen Wyma wrote: > > I’m more than willing to help out in exchange for some Dutch help? Language 4 > language exchange? :) LOL, quite some people in the core team are quite proficient in Dutch. So that won’t be problematic :) - M -- ---

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Marc Worrell
Thinking of it… we do use a lot of records for all notifications and postbacks. Are those supported in Elixir? - Marc > On 29 Sep 2017, at 08:54, Kai Janson wrote: > > Some of the things in the hrl file could be replaced by Elixir macros or > functions? > > Sent from my

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Allen Wyma
I’m more than willing to help out in exchange for some Dutch help? Language 4 language exchange? :) On Fri, Sep 29, 2017 at 4:10 PM Kai Janson wrote: > Some of the things in the hrl file could be replaced by Elixir macros or > functions? > > Sent from my non-google-device > >

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Kai Janson
Some of the things in the hrl file could be replaced by Elixir macros or functions? Sent from my non-google-device > On Sep 29, 2017, at 02:51, Marc Worrell wrote: > > Hi Allen, > > Two weeks ago David de Boer and I had a look at how Elixir and > Erlang could be mixed. > >