<pablo_escoberg>
why is `db` not finding this record?
<pablo_escoberg>
in fact, I can't get `db` or `collect` to return anything other than NIL and I can't for the life of me figure out what I'm doing wrong.
<abu[7]>
Is the index correctly built? (scan (tree 'nm '+User))
<abu[7]>
In any case, you pass too many args to 'request'
<pablo_escoberg>
that returns NIL
<abu[7]>
Should be only a proper combination of index trees
<abu[7]>
i.e. a unique combination
<pablo_escoberg>
yes, it is unique
<abu[7]>
but the empty tree is another problem
<pablo_escoberg>
right. what's up with that?
<abu[7]>
did you 'commit'?
<pablo_escoberg>
yes
<pablo_escoberg>
and when I view the DB file, I can see the data
<abu[7]>
so the index is wrong
<abu[7]>
maybe your E/R model?
<pablo_escoberg>
Not sure how to trouble shoot this.
<pablo_escoberg>
Is there some way to list all the records in the DB of a particular class?
<abu[7]>
In the standard release, nm of +User is a +Key
<pablo_escoberg>
or rather symbol?
<abu[7]>
So this makes sense only *alone*
<abu[7]>
(select +User)
<abu[7]>
But without index it won't work
<abu[7]>
same as 'collect'
<pablo_escoberg>
that works!
<pablo_escoberg>
and the correct record shows up on the list.
<abu[7]>
How is the 'rel' for 'nm'?
<abu[7]>
Standard is (rel nm (+Need +Key +String))
<pablo_escoberg>
oh, interesting. +Key overrides methods in +String?
<abu[7]>
Perhaps not in this case, but inheritance may not be passed on from main class to a prefix
<abu[7]>
(vi 'rel> '+Key)
<abu[7]>
it does (vi 'rel> '+Key)
<abu[7]>
oops
<abu[7]>
(extra Obj Old New Hook)
<pablo_escoberg>
ok, I'll bear that in mind. I had initially thought the various prefix classes wouldn't override each other, but I guess they'll have to in some cases. I'll be on the lookout for that kind of thing.
<abu[7]>
yeah, a prefix *knows* that it is a prefix
<abu[7]>
Each class controls whether it calls 'extra' or `super' or both
<pablo_escoberg>
ah, got it. still not working, but at least I know what to play with...
<abu[7]>
Better start with a simpler model first
<abu[7]>
and then gradually extend it
<abu[7]>
e.g. the standard +User
<abu[7]>
@lib/adm.l
<abu[7]>
I include lib/adm.l in every projevt
<abu[7]>
*project
<abu[7]>
You tend te write complicated stuff before understanding the mechanics ;)
<abu[7]>
Lisp programming is incremental
<abu[7]>
in the REPL
<pablo_escoberg>
I did start pretty simple, had it working, and then went and did some JS stuff, came back and it no longer works.
<abu[7]>
ok
<pablo_escoberg>
but I'm not using the GUI, and am using marker classes and the like, so it looks more complicated than it is.
<abu[7]>
The model I mean
<pablo_escoberg>
well, that is about as simple as it gets...
<pablo_escoberg>
ok, TY. We'll figure it out a different time. have a good trip.
<abu[7]>
Thanks! I can continue later in the train.
<abu[7]>
On rails :)
<pablo_escoberg>
well, you are certainly hard care!
<pablo_escoberg>
core*
<abu[7]>
:)
<pablo_escoberg>
BTW, looks like I figured it out, more or less. the issue was not in the relations, but in the entity. my +Rest class seems to have interfered; I'll need to put it last.
<abu[7]>
great
pablo_escoberg has quit [Quit: Client closed]
msavoritias has quit [Read error: Connection reset by peer]
seninha has joined #picolisp
inara has quit [Ping timeout: 255 seconds]
inara has joined #picolisp
isaneran has quit [Ping timeout: 260 seconds]
Cycloner has joined #picolisp
Cycloner has quit [Remote host closed the connection]
z4k4ri4_ has quit [Ping timeout: 246 seconds]
z4k4ri4_ has joined #picolisp
rob_w has quit [Quit: Leaving]
isaneran has joined #picolisp
isaneran has quit [Ping timeout: 260 seconds]
Little_Shener has joined #picolisp
Little_Shener is now known as little_shener
little_shener is now known as small_shener
seninha has quit [Ping timeout: 258 seconds]
small_shener is now known as print_bad
print_bad is now known as cycloren
cycloren has quit [Remote host closed the connection]
Little_Shener has joined #picolisp
Little_Shener has quit [Remote host closed the connection]
seninha has joined #picolisp
pablo_escoberg has joined #picolisp
Cycloner has joined #picolisp
Cycloner has quit [Remote host closed the connection]