Menu

#85 ns_share is deprecated

Bug
closed
nobody
None
5
2019-01-20
2019-01-16
No

when I use the ns_share with "-init" switch on naviserver, I get a notice that ns_share is deprecated and I should use nsv_set instead of it.

I found the following link : https://naviserver.sourceforge.io/n/naviserver/files/nsv.html#section3

to migrate from ns_share to nsv_set, but the topic doesn't mention how to migrate ns_share with "-init" switch

example :

ns_share -init {set wd_installed_p 0} wd_installed_p

I tried :

nsv_set wd_installed_p 0

but it doesn't substitute ns_share

can I use ns_share even if it's deprecated ? how to substitute -init in nsv_set ?

the naviserver version is the latest

Discussion

  • gustafn

    gustafn - 2019-01-16

    You seem to port some legacy software!

    Here is an example, which resembles pretty much your case:
    https://openacs.org/forums/message-view?message_id=4263411

     
  • Ayman Idries

    Ayman Idries - 2019-01-20

    Thansk it works fine

     
  • gustafn

    gustafn - 2019-01-20
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB