Re: Reset password on PicoLisp Wiki home?

2019-03-31 Thread Alexander Burger
On Sun, Mar 31, 2019 at 05:04:10PM -0400, r cs wrote:
> How do I find out who has administrator role on the wiki?

This is indeed not possible with the normal member role, as for accessing the
user and role admin the administrator role is required.

I do have administrator role. The best is if you enter the #picolisp IRC
channel, and send me a new password in a direct message. I will set it, and you
should change it to another one as soon as possible.

If you cannot access IRC, please send me a personal mail with the new password
and we proceed as above.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Reset password on PicoLisp Wiki home?

2019-03-31 Thread r cs
How do I find out who has administrator role on the wiki?

Thanks,
rcs

On Sat, Nov 24, 2018 at 2:53 PM Alexander Burger 
wrote:

> Hi r cs,
>
> > Is there a way for a user to either retrieve their password or reset it
> on
> > the PicoLisp Wiki home?
>
> Retrieving it is not possible, as only the hash is stored. But you could
> ask
> anyone with Administrator role to set a new one, and then log in and
> change it.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


-- 
*Níl aon tinteán mar do thinteán féin. *[Irish Gaelic]
(There is no fireside like your own fireside.)


Re: beginer question

2019-03-31 Thread Alexander Burger
Hi Sundar,

> As you can see below there are two classes, one for customer basic
> info and another to record the order placed.
> 
> *| class +Info | class +PizzaOrder
> >|*
> 
> *|--+-
> > |*
> 
> *| (class +Info +Entity)  | (class +Order +Entity)
> >   |*
> 
> *| (rel name (+Ref +Need +String))  | (rel ord (+Key +Number))
> >  |*
> 
> *| (rel number (+Number))| (rel dat (+Date))
> >   |*
> 
> *|   | (rel typ
> > (+String)) |*
> 
> *|   | (rel sze
> > (+String))|*
> 
> *|   | (rel cus (+Ref
> > +Link) name (+Info)) |*
> 
> *|   |
> >|*
> 
> ...

          (quote
             @Nm (val> (: home search))
             (select (@search)
                ((cus +PizzaOrder) (name +Info))

I think '+PizzaOrder' must be '+Order', according to the model. But as it
is not searched for, this clause should be omitted anyway.

The generator clauses need to know what to search for, so we must pass '@Nm'

          (quote
             @Nm (val> (: home search))
             (select (@search)
                ((name +Info @Nm))

Concerning the filter clause

                (tolr @Nm @search cus name)

'tolr' is not suitable here. As the 'name' relation is a '+Ref', we need bo use
'head' (or change the 'name' relation from (+Ref +String) to (+Sn +Idx +String)
for personal names). For a listing of meaningful combinations, you could check
https://software-lab.de/doc/search


> questions:
> 1. this 'put' and 'get' is what I find difficult to grasp.

The put function transforms the internal representation of the chart (in case of
'select' a list of objects) into a 2-dimensional representation for the table in
the GUI (always a list of lists). It depends on what is shown in the GUI.

The get function does the reverse. For a pure query chart, which does not allow
editing, it is omitted.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe