Questions tagged [restrictions]

A set of limiting conditions or measures to delimit the behavior of software.

232 questions
0
votes
1 answer

Django forms DateTimeInput widget- how to specify max date?

I have a form displayed in my Django project, and one of the form fields is a DateTimeInput widget, defined with: presentation_date = mDateTimeField(required=False, label="Presentation date", widget=forms.DateTimeInput(format='%d/%m/%Y %H:%M'))…
Noble-Surfer
  • 3,052
  • 11
  • 73
  • 118
0
votes
3 answers

xsd2code++ restrictions not generated

I tried to generate C#-Classes from XSD using XSD2Code++ (V4.2.0.31, licensed version). The Code generation is working, but it is omitting the restrictions. XSD:
0
votes
1 answer

How to restrict an entire WordPress site to visitors, but the register and login page?

Restrict Website, But Login and Register Page I want my my entire WordPress site to be restricted to visitors, but I want the register and login page to be accessible (not restricted) to the visitors Since my website is a members-only website, I…
0
votes
1 answer

Restrict Access to a page in a Wordpress website only for specific referrer

I would like to restrect access to one page in a wordpress website, so that the page is only accessible to users coming from a specific website. Lets say my wordpress website is www.wptest.com and the page www.wptest/tickets should be accessible…
ZelelB
  • 1,836
  • 7
  • 45
  • 71
0
votes
1 answer

Python replace string without certain characters after it

I am trying to replace a string within a text file so that it only replaces the exact match of the string. So if the file was: "word" "word_1" "word1" "wordA" I want to replace just word with test_1 I would do this: text.replace("word",…
nmap256
  • 1
  • 1
0
votes
0 answers

Unable to dowloading PDF with restrictions

I'm trying to download some PDF's from http://www.jre.co.jp/news/20160630.html (note, you must use IE to open the pdfs for some reason). However, whenever I download them, I get a blank pdf (with the right number of pages) or a pdf which say's I…
E.O.
  • 794
  • 6
  • 16
  • 24
0
votes
1 answer

Hibernate search query, restrict by child classes?

Consider the following setup. Space.java class Space { Id id; ParkingCampus campus; } class ParkingCampus { Id id; String country; } This is not the exact structure of my project but it is close enough for what I am trying to…
Adam
  • 1,724
  • 13
  • 16
0
votes
1 answer

Android: how to restrict access to ContentProvider

Is it possible to add a filter to a content provider to make it accept only requests coming from a set of known application IDs? For example, if com.domain1.app1 and com.domain2.app2 are two app that I trust I'd like to make them read my data. Any…
user3290180
  • 4,260
  • 9
  • 42
  • 77
0
votes
1 answer

Sitecore Publish Restrictions Window - Hide tab

Can I restrict the show of these tabs? Is this via a Core DB security setting? or is it in configurations? I do not want to show the target tab to my users. Image of the dialog I am referring to
Dee
  • 25
  • 5
0
votes
1 answer

What is allowed in Restricted XPaths (constraints)?

I need to apply constraints in a large XML file, like this:
PeerBr
  • 675
  • 1
  • 11
  • 26
0
votes
1 answer

Hibernate criteria Restrictions:- how to fetch current and last month data

Here is my method to get the specific month and year data from created date. @Override public List getMonthlyOrdersSummary(LabOrderConditions labOrderConditions) { Criteria criteria =…
Sitansu
  • 3,225
  • 8
  • 34
  • 61
0
votes
1 answer

Limit API access to own domain?

I offer an API (geocoding) and want to provide users with a demo website. This site would query the API through AJAX. Is there some way to limit the access so only requests from the website would be accepted in order to prevent free unlimited access…
Chris
  • 13,100
  • 23
  • 79
  • 162
0
votes
0 answers

Hibernate restrictions

I have a class named as Films and it has id, filmName, actionStatus and so on. I want to take the filmNames where its actionStatus=4. There are many filmNames with actionStatus=4. I tried to do it this way: Session ses =…
mkmp
  • 142
  • 2
  • 9
0
votes
5 answers

Is it possible to apply restrictions to several methods in C#

I have a script as follow : Int MethodOne (int param) { If (param > 5) { Return 0; } Return param; } Int MethodTwo (int param) { If (param > 5) { Return 0; } Return param * anotherVariable; } Is it possible…
Souk21
  • 91
  • 1
  • 7