mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 11:08:45 +03:00
Hack out the weird /path from +gram
This commit is contained in:
parent
1f3456fc4d
commit
7291c0b66f
@ -818,7 +818,20 @@
|
|||||||
::
|
::
|
||||||
$west :: remote request
|
$west :: remote request
|
||||||
=. mow :_(mow [hen %give %mack ~])
|
=. mow :_(mow [hen %give %mack ~])
|
||||||
=+ mez=((soft gram) q.kyz)
|
:: TODO: make +gram and %west play nicely together
|
||||||
|
::
|
||||||
|
:: %west passes paths around, where all the paths are actually single
|
||||||
|
:: tags. The old version of +gram used [%tag ~] as tag types in its
|
||||||
|
:: definition, which no longer works.
|
||||||
|
::
|
||||||
|
:: Actually fixing this is a cross-ames-eyre surgery, for now hack it
|
||||||
|
:: by molding the incoming thing into a gram shape before we try to
|
||||||
|
:: soft it.
|
||||||
|
::
|
||||||
|
?~ -.q.kyz
|
||||||
|
~& e+[%strange-west-wire p.kyz]
|
||||||
|
~!(%strange-west-wire !!)
|
||||||
|
=+ mez=((soft gram) [i.-.q.kyz +.q.kyz])
|
||||||
?~ mez
|
?~ mez
|
||||||
~& e+[%strange-west p.kyz]
|
~& e+[%strange-west p.kyz]
|
||||||
~|(%strange-west !!)
|
~|(%strange-west !!)
|
||||||
@ -1042,7 +1055,11 @@
|
|||||||
(pass-note tea [%e %meta :(slop !>(%them) !>(~) vax)])
|
(pass-note tea [%e %meta :(slop !>(%them) !>(~) vax)])
|
||||||
::
|
::
|
||||||
++ ames-gram
|
++ ames-gram
|
||||||
|=({him/ship gam/gram} (pass-note ~ %a %want [our him] [%e -.gam ~] +.gam))
|
|= [him=ship gam=gram]
|
||||||
|
:: TODO: To make this work
|
||||||
|
::
|
||||||
|
~! -.gam
|
||||||
|
(pass-note ~ %a %want [our him] [%e -.gam ~] +.gam)
|
||||||
::
|
::
|
||||||
++ back-turbo
|
++ back-turbo
|
||||||
|= [tea=whir mar=mark cay=cage]
|
|= [tea=whir mar=mark cay=cage]
|
||||||
@ -1475,7 +1492,7 @@
|
|||||||
=/ han (sham hen)
|
=/ han (sham hen)
|
||||||
=. pox (~(put by pox) han hen)
|
=. pox (~(put by pox) han hen)
|
||||||
=+ arg=(fcgi payload fcgi-cred)
|
=+ arg=(fcgi payload fcgi-cred)
|
||||||
[%| (ames-gram p.bem [%get-inner ~] han ext arg bem)]
|
[%| (ames-gram p.bem %get-inner han ext arg bem)]
|
||||||
=+ wir=`whir`[%ha (en-beam -.bem ~)]
|
=+ wir=`whir`[%ha (en-beam -.bem ~)]
|
||||||
=. wir ?+(mef !! $get wir, $head [%he wir])
|
=. wir ?+(mef !! $get wir, $head [%he wir])
|
||||||
=. r.bem ?+(r.bem r.bem {$ud $0} da+now)
|
=. r.bem ?+(r.bem r.bem {$ud $0} da+now)
|
||||||
|
Loading…
Reference in New Issue
Block a user