[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-artanis] ENTRY not loading modules

From: Julio Claudio Matus Ramirez
Subject: Re: [Bug-artanis] ENTRY not loading modules
Date: Tue, 21 Aug 2018 00:03:21 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hey Nala,

Thanks for the info.

I got that this is how artanis is supposed to work.

But I do still this is a bug. So I sent a merge request for it.
I also sent another merge request for the documentation in general btw,
on gitlab.

Just to explain,
current status:
documentation says "Put modules you want to be imported here"

>From this, I guess depending on the person, people can think:
"This is the startup file, so I guess adding my modules here will make
it work for the whole program. Since it makes no sense to import modules
to the start up file unless it makes them valid through the whole application"

Yet, it only works for the ENTRY file.

Unless this is clearly documented somewhere, I think this is how many
people would interpret this sentence.

So, the "comment" and the actual "function" are kind of far from a
perfect match.
Therefore, my merge request changing the comment so it's more clear.

I hope you like my merge requests ;)

Putting that aside, I have a couple of questions:

1. For what reason would people import modules to ENTRY?
2. ENTRY has a "add modules here!" section, but nothing like that on the
controller template. And no explanation in the documentation
either... Any reason? Any "phylosophy" I'm missing? If not I'd like to
have it somewhere...

As an extra comment, having read the whole documentation btw, I see lots
of examples based on "script-like" code, loading the artanis modules and
defining routes and everything all in one file. Since GNU Artanis is
supposed to be using the MVC model and all, this seems far from its
original phylosophy/goal. Since in a true MVC project code would be
hardly managed in a script-like one file model. I think I'll personally
put my working artanis code somewhere, so new people can understand how
the whole setup and code actually work together. But it'd be nice to
have more examples like this in the official documentation rather than
3th party individual users' code.


Nala Ginrut <address@hidden> writes:

> Hi Julio!
> I found your bug report on web page:
> https://lists.gnu.org/archive/html/bug-artanis/2018-07/msg00000.html
> Somehow my mail client seems filtered you mail. I need to check my SPAM
> config.
> Anyway, what you reported is not a bug.
> I think the line mentioned in ENTRY confused you, but it actually means
> "import modules needed in ENTRY file". If you want to use something in
> your controllers or any other module outside ENTRY, you have to import
> in that module respectively.
> The module imported in ENTRY will not appear in other module.
> Hope this help you.
> Best regards.
> --
> GNU Powered it
> GPL Protected it
> GOD Blessed it
> HFG - NalaGinrut
> Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

diaspora: sysad.org/u/rikijpn
GPG key: http://pgp.mit.edu/pks/lookup?op=get&search=0x280640B9A94C170D

reply via email to

[Prev in Thread] Current Thread [Next in Thread]